jake03
08-30-2008, 01:08 PM
I've tried to break down the following statement.
var d=new Date();
//So var means variable. d is the name of the variable. = is what the variable equals. duh ... new Date is a javascript function that gets the current date but I don't understand what () is?
theDay=d.getDay(); // On this
//theDay is the name of the next variable, d is the name of the variable i've created above and getDay turns it into a number? Still don't understand the ()
I can get this script to work ... I just want to understand WHY i can get it work .
Thanks in advance.
var d=new Date();
//So var means variable. d is the name of the variable. = is what the variable equals. duh ... new Date is a javascript function that gets the current date but I don't understand what () is?
theDay=d.getDay(); // On this
//theDay is the name of the next variable, d is the name of the variable i've created above and getDay turns it into a number? Still don't understand the ()
I can get this script to work ... I just want to understand WHY i can get it work .
Thanks in advance.