Providers Web Programming
Tuesday, August 31, 2010
Overriding a global var in a function in Javascript
If you declare a variable in a function, it overrides a variable that is global.
That is, if you have
var mynum=1234;
function xyz()
{
var mynum=34;
}
you have created a local variable.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment