+ 5
Need explanation on this javascript code challenge.
function foo(a) { var b = 5; function bar(a) { return b + a; } return bar(b++); } console.log(foo(8)); // Answer 11 No matter what parameter value I call foo it still came out 11.
3 Respuestas
function foo(a) { var b = 5; function bar(a) { return b + a; } return bar(b++); } console.log(foo(8)); // Answer 11 No matter what parameter value I call foo it still came out 11.