Re:A Reintroduction to JavaScript
by lost_my_pwd on Tuesday February 04, 2014 @12:26PM
(#7178849)
Small problem with the conditional using the array assigment. If a value in the array is not "truthy", the loop will stop at that element -- e.g. ['a', 0, 'b', 'c'] will only print out the first element in your example.
[ Parent
| on HN ]
There are no comments on this comment yet.