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 ответ
+ 12
use the \ before the character alert("escape \"quotes\"")
13th Jan 2018, 12:42 PM
Burey
Burey - avatar