Are there any escape characters in JS? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuesta
+ 12
use the \ before the character alert("escape \"quotes\"")
13th Jan 2018, 12:42 PM
Burey
Burey - avatar