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