📜  7.7.backslash, \ - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:18             🧑  作者: Mango

代码示例1
/*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