Learn JavaScript Part 2: String Character

Escape character ( \ ) converts special character into string character
  1. <!DOCTYPE html>  
  2. <html xmlns="http://www.w3.org/1999/xhtml">  
  3. <head>  
  4.     <title></title>  
  5. </head>  
  6. <body>  
  7.     <script id="javascript">  
  8.         alert(" Hello \"Akshay\" ");  
  9.     </script>  
  10. </body>  
  11. </html> 

Output

Hello “Akshay”