The IN Group of Operators: in and instanceof



Navigation Aids -- This Page        Navigation Aids -- This Topic        Navigation Aids -- This Site




Review of Terms Related to This Topic





The Purpose for this Page

This page will show the basic rules for the JavaScript IN operator group. Some special situation cases are explained. And finally, some scripting examples are provided with comments.





The Basics of IN Operator Group





Special Situations





Some Script Examples


Expression Giving Comment
var date2 = new Date();
date2 instanceof Date;
true create a new object with the Date() constructor
date2 was created with Date()
var date4 = new Date();
date4 instanceof Array;
false create a new object with the Date() constructor
date4 was not created with Array constructor
var array2 = new Array();
array2 instanceof Array;
true create a new object with the Array() constructor
array2 was created with Array()
var array4 = new Array();
array4 instanceof Date;
false create a new object with the Array() constructor
array4 was not created with Date constructor
"write" in document; true the document object contains the write() method


Top            

Rx4AJAX        About Us | Topic Index | Contact Us | Privacy Policy | 2008 This Site Built By PPThompson