Howdy All!
Must I *always* precede an instance variable with "this" in JavaScript?
For example, consider the code below:
var initialDate;
function DateControl (initialDate)
{
this.initialDate = initialDate;
}
function doSomething()
{
alert ("typeof initialDate: " + (typeof initialDate));
}
Should initialDate be undefined and this.initialDate be a date?
Or should they both be date?
Thanks for any advice!
Rob
:)