filmov
tv
String in JavaScript | Escape Character#1 #Shorts

Показать описание
#Shorts
Watch this JavaScript tutorial for beginners to learn JavaScript basics in short video.
______
🙌 Subscribe my channel
______
👍JavaScript strings are used for storing and manipulating text.
A JavaScript string is zero or more characters written inside quotes.
👍A JavaScript string stores a series of characters like "Hello World".
A string can be any text inside double or single quotes:
let firstName = "JavaScript";
let lastName = 'String';
String indexes are zero-based: The first character is in position 0, the second in 1, and so on.
👍Escape Character
Because strings must be written within quotes, JavaScript will misunderstand this string:
The solution to avoid this problem, is to use the backslash escape character.
The backslash (\) escape character turns special characters into string characters:
#Shorts #JavaScript #String
Watch this JavaScript tutorial for beginners to learn JavaScript basics in short video.
______
🙌 Subscribe my channel
______
👍JavaScript strings are used for storing and manipulating text.
A JavaScript string is zero or more characters written inside quotes.
👍A JavaScript string stores a series of characters like "Hello World".
A string can be any text inside double or single quotes:
let firstName = "JavaScript";
let lastName = 'String';
String indexes are zero-based: The first character is in position 0, the second in 1, and so on.
👍Escape Character
Because strings must be written within quotes, JavaScript will misunderstand this string:
The solution to avoid this problem, is to use the backslash escape character.
The backslash (\) escape character turns special characters into string characters:
#Shorts #JavaScript #String