Quoting Strings with Single Quotes, freeCodeCamp Basic Javascript

Lesson Summary

In this lesson we learn how to save ourselves time and confusion concerning quotes. If we are using multiple double quotes in our string, then instead of having to use an escape character ( \ ) on all the double quotes inside the string, we can just change our outside quotes that go around our string from double quotes to single quotes. ***Note if there is single quotes within the string this will not work and you will have to use the escape character.***

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required