In the following example, we will see how the use of special characters are needed to properly display a message.
var txt="Did you read that really "cool" book?"; document.write(txt);
If we require the quotes in our output, we need to use special characters in our code. Here is how we would address that need.
var txt="Did you read that really \"cool\" book?"; document.write(txt);