javascript typeof
66Google Page Rank
javascript typeof
javascript typeof
Here is the code:
<html
>
<head>
<h2> Use of typeOf Operator </h2>
<script>
var var1 = new String("Hello World");
var var2="Hello World";
var var3=new Date();
var var4=true;
var var5=10;
document.write("<b>The var1 is </b>"+typeof(var1)+"<br>");
document.write("<b>The var2 is </b>"+typeof(var2)+"<br>");
document.write("<b>The var3 is </b>"+typeof(var3)+"<br>");
document.write("<b>The var4 is </b>"+typeof(var4)+"<br>");
document.write("<b>The var5 is </b>"+typeof(var5)+"<br>");
document.write(typeof null+"<br>");
document.write(typeof myVar);
</script>
</head>
<body bgcolor="lightBlue"/>
</html>
Output will be displayed as:
Use of the typeof operator
The Var1-object
The Var2-string
The Var3-object
The Var4-boolean
The Var5-number
Object-undefined
Rev.Sinner- another nerd page
javascript typeof
PrintShare it! — Rate it: up down flag this hub
javascript software
|
Pro JavaScript Design Patterns (Recipes: a Problem-Solution Ap)
Price: $26.29
List Price: $44.99 |
|
5 Web Design training Courses - PHP, Dreamweaver, Frontpage, Javascript Training CDs Value Pack
Price: $29.95
|
|
|
Total Training for Dreamweaver CS3 Essentials
Price: $72.00
List Price: $99.99 |
|
Pro Javascript RIA Techniques: Best Practices, Performance and Presentation
Price: $6.00
List Price: $44.99 |
|
Getting StartED with JavaScript
Price: $29.99
List Price: $29.99 |
|
JavaScript: The Good Parts
Price: $18.26
List Price: $29.99 |
|
Learning jQuery: Better Interaction Design and Web Development with Simple JavaScript Techniques
Price: $31.57
List Price: $39.99 |
|
Mastering JavaScript 2004
Price: $3.99
|
|
|
Web Application Design and Implementation: Apache 2, PHP5, MySQL, JavaScript, and Linux/UNIX (Quantitative Software Engineering Series)
Price: $60.00
List Price: $79.50 |









