Summary

Compare with === and !==, never == and !=, which convert types first. In a condition, false, 0, an empty string, null, undefined and NaN count as false, and everything else as true. A cheat sheet of C# and its JavaScript equivalents.

Updated

Cheat sheet: Summary
Category
JavaScript
Level
Apprentice
Tags
Falsy, JavaScript, null (javascript), Strict Equality (===), Truthy