Mega Code Archive

 
Categories / JavaScript Tutorial / Operators
 

Get variable type

< 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>