JavaScript Collection
The top answer on this stackoverflow question has an amazing set of JavaScript examples and explanations of various things as well as why you should use certain methods over other methods.Objects
Create a JavaScript object, code from this blog
var date = {
year: 2013,
month: 3,
day: 3,
getDate: function() {
return ""+ this.year + " " + this.month + " " + this.day;
},
};
alert(date.getDate());
year: 2013,
month: 3,
day: 3,
getDate: function() {
return ""+ this.year + " " + this.month + " " + this.day;
},
};
alert(date.getDate());
Bottom
CODE
No comments:
Post a Comment