V
VK
Just donged on me:
function foobar() {
foo = 'bar';
// global variable
}
function foobar() {
var foo = 'bar';
// local variable
}
function foobar() {
var foo = (new Date()).getTime();
// (new Date()) object:
// does it suppose to be like local foo
// or it will hand up somewhere in the
// global scope?
}
function foobar() {
foo = 'bar';
// global variable
}
function foobar() {
var foo = 'bar';
// local variable
}
function foobar() {
var foo = (new Date()).getTime();
// (new Date()) object:
// does it suppose to be like local foo
// or it will hand up somewhere in the
// global scope?
}