# 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.

![Cheat sheet: Summary](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/b708d8a5284c402f8f5d1b1453a254ac.webp)

- Category: JavaScript
- Level: Apprentice
- Tags: Falsy, JavaScript, null (javascript), Strict Equality (===), Truthy
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/csharp-vs-javascript-summary-cheat-sheet
