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

Good point, same in JS:

  if (2 != false) console.log('yes')
  > yes
false goes to 0 and 2 != 0.


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

Search: