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

There is yet a third type of missing value in JS: empty array slot. This appears when you create an array with a length but no values for indexes in that length, e.g. `new Array(100)`.

Edit: also `undefined` is a value in JS as well.



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

Search: