Basics

Variables

Variables store data. Use const for fixed values, let for reassignable ones, and avoid var in modern JavaScript.

Data Types

JavaScript has primitive types (string, number, boolean, null, undefined, symbol, bigint) and reference types like objects and arrays.

Operators

Arithmetic, comparison, logical, and assignment operators help manipulate values in JavaScript.

Conditionals

Use if, else, else-if, and switch statements to run different code based on conditions.