Displaying a String Containing Escaped Quotations : Char « Language Basics « JavaScript DHTML






Displaying a String Containing Escaped Quotations

<HTML>
<BODY>
<H1>
<SCRIPT> 
var potterSays = "\"I want to read it,\" said Joe, \"as it\'s mine!\""; 

document.write(potterSays); 
</script>
</H1>
</BODY>
</HTML>
           
       








Related examples in the same category

1.Using Special Characters in JavaScript
2.Defining Special Characters as Variables for Later Use
3.Using Special Formatting Characters
4.Character Conversions