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

This was my first thought as well. If he instead initializes:

    var result = "";
and checks for:

    if (result.length === 0) {
    ...
in the third conditional, is there still a bug?


Yes, he specifies the conditional is "examine the variable result; if it is still null ..."




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

Search: