Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
Q_the_Novice
· 14y ago · 0 comments
JavaScript variables are passed by reference, the variable `i` on the statement: `var msg = txt[i];` will always reference the last value after the loop has executed.
Comments
No comments yet.
Better HN