3 ms·
My biggest problem with JavaScript is that I never can seem to wrap my head around the multiple null/undefined type of values and how to correctly test for them
by kbenson 10y ago
My biggest problem with JavaScript is that I never can seem to wrap my head around the multiple null/undefined type of values and how to correctly test for them, as well as type introspection. Or, more appropriately, my problem with JavaScript is that it makes that confusing, and I use it just infrequently enough that I forget what I learned last time regarding that. Of course, that's not entirely JavaScript's fault, it just doesn't make it very easy.
- erikpukinskis 10y agoI don't really use null at all. I either just check falsiness, or if there's some chance of the variable being a 0 I check for typeof == "undefined".
- woah 10y agoI think the majority of complaints about JavaScript are from people who are forced to use it infrequently, and don't quite remember how to use it.