7 tips to handle undefined in JavaScript

When I started to learn JavaScript about eight years ago, a bizarre situation for me was the existence of both undefined and null that represent empty values. What is the clear difference between them? They both seem to define empty values, and moreover the comparison null == undefined evaluates to true. Most of the modern languages like Ruby, Python or Java have a single null value… Continue reading