Are there any escape characters in JS? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Are there any escape characters in JS?

for example if my text is like " John's dog said, "Bark" ". then how will I escape the double quotes inside string declaration?

13th Jan 2018, 12:18 PM
Tanmay Shrivastava
Tanmay Shrivastava - avatar
1 Réponse
+ 12
use the \ before the character alert("escape \"quotes\"")
13th Jan 2018, 12:42 PM
Burey
Burey - avatar