- Jan 2, 2006
- 10,455
- 35
- 91
Unfortunately every now and then I come upon a bug in my JS that I spend hours and hours debugging because I wasn't aware of certain quirks that JS has. Things like:
- "equals" / comparison operators not working as expected
- copying objects (shallow copy / deep copy / copy by reference) - this once screwed me up for DAYS
- don't using for-in loops on arrays, only on objects
I feel like it's time to just sit down and read a good resource on all of these JS gotchas.
- "equals" / comparison operators not working as expected
- copying objects (shallow copy / deep copy / copy by reference) - this once screwed me up for DAYS
- don't using for-in loops on arrays, only on objects
I feel like it's time to just sit down and read a good resource on all of these JS gotchas.