String in JavaScript | Escape Character#1

Pubblicato il: 15 maggio 2021
sul canale di: 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


In questa pagina del sito puoi guardare il video online String in JavaScript | Escape Character#1 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato stepUP 15 maggio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 621 volte e gli è piaciuto like spettatori. Buona visione!