Skip to main content

Fundamentals for JavaScripts

JavaScript fundamentals are the core language pieces: variables declared with let and const, primitive types, type coercion, operators, conditionals and loops. This is the first unit of the Language Core stage and sets the base for every later topic, including functions, objects and asynchronous code.

Stage: Language Core · Part of the JavaScript roadmap · Last reviewed 19 November 2026

What to learn in Fundamentals

Fundamentals interview questions

What is the difference between == and === in JavaScript?

The == operator converts types before comparing, so 0 == '0' is true. The === operator compares without conversion, so it is false when types differ. Prefer === because coercion rules are surprising and cause hard-to-find bugs.

What is the difference between null and undefined?

undefined means a variable was declared but has no value, or a property is missing. null is an explicit value meaning no object or intentionally empty. typeof null returns 'object', which is a long-standing quirk of the language.

Where Fundamentals fits in the JavaScript roadmap

Fundamentals belongs to the Language Core stage (beginner level), which takes about 28 hours. Syntax and data.

Back to the full JavaScript roadmap