๐ Join my channel to get access to perks:
https://www.youtube.com/channel/UC8n8ftV94ZU_DJLOLtrpORA/join
๐งก Hello All JavaScript Lovers Outhere!
Today you’re going to learn about the String Object In JavaScript.
This tutorial is a series of videos, in each video we will discuss a method (or more) of the String Object in JavaScript.
In today’s video, you’re going to learn how to create a string primitive and a string object in JavaScript, and the difference between them, and that JavaScript automatically convert a string primitive to a string object, so you can have access to all the string object methods and properties.
We will discuss the length property of string, and that it’s basically the number of characters in a string.
You will also learn that strings are zero index based, which means that the first character in a string has the index zero. and because strings can be treated like arrays, we can access each character by using the index via the square brackets ( [index] ).
Example:
const str = “Code Explained”;
console.log(str[5]); // logs “E”
You will also learn how to use the charAt method to access a character for a given string.
๐ Timeline :
00:00:00 – Intro
00:00:39 – Create a string
00:02:04 – String Length Property
00:02:52 – Access String Character
00:04:39 – charAt method
๐ Social Media Links.
โพ Facebook : https://www.facebook.com/Code.Explained.Official
โพ Twitter : https://twitter.com/code_explained
โพ Instagram : https://www.instagram.com/Code.Explained.Official/
โพ GitHub : https://github.com/CodeExplainedRepo
๐ฒ Suppport the Channel
Paypal : https://paypal.me/CodeExplained
Buy Me a Coffee: https://www.buymeacoffee.com/CodeExplained
JavaScript For Beginner – How to Write Code for Web Pages
|
JavaScript For Beginner – How to Write Code for Web Pages
If you’re a JavaScript for beginner, you may wonder how to write code for web pages. Well, there are a few things that you need to do. First, you need to understand what this language is all about. In this way, you will be able to use it to change the style of elements on a web page. You can also use JavaScript to react to mouse events, create alert pop-ups, and perform operations based on user inputs. Lastly, you can use JavaScript to validate user inputs before sending them to the server.