If we want to create a string with quotation marks inside it, we could run into problems. Try running this code in the console:
"a "healthy" dessert"
Using quotation marks in strings
One way to use quotation marks in strings is to use a different kind of quotation mark around the string. Try these examples:
'a "healthy" dessert' "a 'healthy' dessert"
We can use any quotation mark in a string as long as it is not the same quotation mark used to define the string.