Lesson

Escaping Literal Quotes in Strings, freeCodeCamp Basic Javascript

Lesson Summary

In this challenge we learn how to add multiple double or single quotes inside of our string by using the backslash escape character ( \ ). The backslash can be used when you want to include quotes inside of a string to notify javascript that the escaped quotes is a literal quote that you want within your string. If we do not use the escape character, javascript will think the quote marks the end of the string.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required


Share: