JavaScript Basics

Variables and Types

In JavaScript, you declare variables using 'let' or 'const'.

String type

Wrap values in single or double quotes.

Number type

Integers and decimals are treated as the same type.

Control Flow

Learn about conditional branching and loops.

if statement

Branches execution based on a condition.