Wednesday, October 19, 2011

CREATING OBJECTS

var today = new Date()
var d1 = new Date("October 13, 1975 11:13:00")
var d2 = new Date(79,5,24)
var d3 = new Date(79,5,24,11,33,0)


If you have a function like date and want to give diffrent pararameters depending on conditions then use
can create a object with a new key word and store it in a variable and keep assignig it different parameters

No comments:

Post a Comment