Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Declaring Variables in JavaScript</title> </head> <body> <script> // Declaring Variable var userName; // Assigning value userName = "Clark Kent"; // Printing variable values document.write(userName); </script> </body> </html>