.NET Development and Administration
I (Anton Telle) am writing about my job at teamaton: programming in C# and JavaScript, administrating web sites

Comparison in JavaScript

May 19. 2015 0 Comments

The concept of ‘undefined’ in JavaScript is not an easy one to fully grasp, especially if you read that in older versions of JavaScript you could overwrite this variable.

Today the question came up, whether an undefined variable would be equal (===) to another undefined variable. Turns out this comparison would yield true. Here are comparison tables for == and ===: JavaScript Comparison Table.

Sign in Impressum Copyright © 2025 Mads Kristensen