- var x = function(){};
alert(typeof x);
...is going to bubble up: function
- var x = 33;
alert(typeof x);
...is going to bubble up: number
- var x = "Hello World.";
alert(typeof x);
...is going to bubble up: string
- var x = {
y: "why not?"
}
alert(typeof x);
...is going to bubble up: object
- etc.
No comments:
Post a Comment