Answers for "7.7.backslash, \"

0

7.7.backslash, \

/*We can also use the backslash, \, to include quotes within a string. 
This is known as escaping a character.*/

console.log("\"The dog's favorite toy is a stuffed hedgehog,\" 
            said Chris");

//"The dog's favorite toy is a stuffed hedgehog," said Chris
Posted by: Guest on June-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language