Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var o = {};
- o.constructor === Object; // true
- var a = [];
- a.constructor === Array; // true
- var n = new Number(3);
- n.constructor === Number; // true
- var o = {};
- typeof o === "object"; // true
- var a = [];
- typeof a === "object"; // true
- var n = new Number(3);
- typeof n === "number"; // false
- var n = 3;
- typeof n === "number"; // true
- function mydate() {
- }
- mydate.prototype = Date.prototype;
- mydate.constructor === Function; // true
- function hello(howareyou) {
- this.howareyou = howareyou;
- }
- var cool = new hello("cool");
- cool.constructor === hello; // true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement