Introduction + charAt method | String Object In JavaScript

Published: 28 July 2022
on channel: Code Explained
12,497
232

🎁 Join my channel to get access to perks:
   / @codeexplained  

🧡 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 :   / code.explained.official  
◾ Twitter :   / code_explained  
◾ Instagram :   / code.explained.official  
◾ GitHub : https://github.com/CodeExplainedRepo

💲 Suppport the Channel
Paypal : https://paypal.me/CodeExplained
Buy Me a Coffee: https://www.buymeacoffee.com/CodeExpl...


Watch video Introduction + charAt method | String Object In JavaScript online without registration, duration hours minute second in high quality. This video was added by user Code Explained 28 July 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 12,497 once and liked it 232 people.