Mega Code Archive

 
Categories / JavaScript Tutorial / Language Basics
 

Declare two variables in the same line

< html> <head> <title>A Simple Page</title> <script language="javascript"> <!-- var msg1 = "Hello there", num1 = 22; alert(msg1); alert(num1); //  --> </script> </head> <body> </body> </html>