JavaScript Core for Frontend Developers
JavaScript core is the set of language fundamentals every frontend developer needs: variables declared with let and const, primitive and object types, functions and closures, scope, arrays and objects with their iteration methods, and ES modules. It is the programming language of the browser and the foundation for TypeScript and React.
Stage: JavaScript and TypeScript · Part of the Frontend Developer roadmap · Last reviewed 19 November 2026
What to learn in JavaScript Core
- Choose between let and const and explain block scope
- Use map, filter and reduce to transform arrays without loops
- Explain what a closure captures and when it causes bugs
- Split code into ES modules using import and export
- Copy or merge objects with spread and destructuring
JavaScript Core interview questions
What is a closure in JavaScript?
A closure is a function that keeps access to the variables of the scope where it was created, even after that outer function has returned. It is how factory functions, event handlers and React hooks remember values. The risk is accidentally holding stale or large data in memory.
What is the difference between == and ===?
Triple equals compares value and type with no conversion. Double equals converts types first, so 0 == '' is true and null == undefined is true. Most style guides require triple equals because the coercion rules are hard to remember and cause subtle bugs.
Where JavaScript Core fits in the Frontend Developer roadmap
JavaScript Core belongs to the JavaScript and TypeScript stage (beginner level), which takes about 5 hours. The language of the browser, and the type system that keeps large codebases sane.
Other units in this stage
Back to the full Frontend Developer roadmap