/** * multiline comment */ text // single line comment text "string" text 'string' text "string" "string with \" escape" text 'string with \' escape' text "string with \" escape" var code = '\ function helloWorld()\ {\ // this is great!\ for(var i = 0; i <= 1; i++)\ alert("yay");\ }\ ';