String in JavaScript | Escape Character#1

Опубликовано: 15 Май 2021
на канале: stepUP
621
like

#Shorts

Watch this JavaScript tutorial for beginners to learn JavaScript basics in short video.
______
🙌 Subscribe my channel
   / @stepup6729  
______

👍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


На этой странице сайта вы можете посмотреть видео онлайн String in JavaScript | Escape Character#1 длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь stepUP 15 Май 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 621 раз и оно понравилось like зрителям. Приятного просмотра!