function add() { var counter = 0; counter += 1; return counter }
Why the counter variable dont get incremented after first iteration ? output is always 1.
No comments:
Post a Comment