Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: