Why am I getting an error newDate() not defined ?
var thedate = newDate(1971,11,9);
console.log("This person was born on:", thedate.getDay());
Why am I getting an error newDate() not defined ?
var thedate = newDate(1971,11,9);
console.log("This person was born on:", thedate.getDay());
Missing space:
var thedate = new Date(1971, 11, 9);
Oh sheesh, programming is like grammer, although they do say syntax errors are the most common.
Thanks.
Siberian, this thread was solved in a blink of pritaes eye, - you should have marked it: "solved" by now.
Regards
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.