Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Including Quotes inside the JavaScript String</title> </head> <body> <script> // Creating variables var a = "Let's have a cup of coffee."; var b = 'He said "Hello" and left.'; var c = 'We\'ll never give up.'; // Printing variable values document.write(a + "<br>"); document.write(b + "<br>"); document.write(c); </script> </body> </html>