New course! Every coder should learn Generative AI!
Try a free lesson0
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?
1 Answer
+ 12
use the \ before the character
alert("escape \"quotes\"")