Mega Code Archive

 
Categories / JavaScript DHTML / Data Type
 

Output the type information

<html> <head> <title>A Simple Page</title> <script language="JavaScript"> var x = "Hello", y; alert("Variable x value is " + typeof(x)); alert("Variable y value is " + typeof(y)); alert("Variable z value is " + typeof(z)); </script> </head> <body> </body> </html>