- 4
console.log('I'm learning JavaScript');
Escape character
2 Respuestas
+ 3
You can edit or comment if you want to add something – no need to create a new thread.
Check my example in the previous thread or review the lesson in the sololearn course.
https://www.sololearn.com/Discuss/2929064/?ref=app
0
'\' or backslash is used as the escape character so instead of
console.log('I'm learning JavaScript');
you should write
console.log('I\'m learning JavScript');
Or you could use combination of quotes to prevent them getting mixed like
console.log("I'm learning JavaScript");
🙂