Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Creating Strings in JavaScript</title> </head> <body> <script> // Creating variables var myString = 'Hello World!'; // Single quoted string var myString = "Hello World!"; // Double quoted string // Printing variable values document.write(myString + "<br>"); document.write(myString); </script> </body> </html>