Learn Javascript - Full course for beginners #16 - String & how to use Strings in javascript

preview_player
Показать описание
Learn Javascript - Full course for beginners - Lesson 16 - String & how to use Strings in javascript.
Learn JS (Javascript) For Beginners, Learning javascript from scratch, java scripting tutorial for beginners and java scripting tutorial for beginners 2020 are important keywords.
Strings are useful for holding data that can be represented in text form. Some of the most-used operations on strings are to check their length, to build and concatenate them using the + and += string operators, checking for the existence or location of substrings with the indexOf() method, or extracting substrings with the substring() method.

Learn JS programming right from the fundamentals in a fun and easy way. If you are a beginner and are eager to want to learn Javascript, then you are watching the right thing. This entire video series is for you. In this complete JavaScript for beginners series we will cover, learn and do -
- The core Basics & Fundamentals of JS
- Live JavaScript uses cases and Examples
and a lot more.
In this lesson we will learn about String & how to use Strings in javascript
There are two ways to access an individual character in a string. The first is the charAt() method:
return 'cat'.charAt(1) // returns "a"
The other way (introduced in ECMAScript 5) is to treat the string as an array-like object, where individual characters correspond to a numerical index:
return 'cat'[1] // returns "a"
Рекомендации по теме