Friday, 13 September 2013

understanding javascript functions and var

understanding javascript functions and var

I just went through my class note and not really understood
var x = 1;
function func1() {
x+= 10; }
func2= function( x )
{ x += 5;
}
what does the line func2= function( x ) means? does x will be 15?

No comments:

Post a Comment