- 4

console.log('I'm learning JavaScript');

Escape character

24th Nov 2021, 3:13 PM
Enoch Chigozie
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
24th Nov 2021, 3:16 PM
Lisa
Lisa - avatar
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"); 🙂
25th Nov 2021, 8:32 AM
Anuj Kumar Patel
Anuj Kumar Patel - avatar