var msg = "I am a "good" boy." ;
To solve, we could rewrite the above script , by placing the backslash ("\") before each special character. This makes the entire string as a literal.
To solve this problem, you must place a backslash (\) before each double quote in " good ". This turns each double quote into a string literal:
var msg = "I am a \"good\" boy." ;