Editor Arrow Download Open
<!DOCTYPE html> <html lang="en"> <head> <title>JavaScript Variable Declare and assign value</title> </head> <body> <pre> <!-- Use pre element for work document.writeln() method --> <script type="text/javascript"> var a = "hello"; var b; var c; document.writeln("a : " + a); document.writeln("b : " + b); document.writeln("c : " + c); </script> </pre> </body> </html>
  Preview Arrow