Skip to main content

Objects for JavaScripts

In JavaScript, objects are collections of properties that inherit behaviour through prototypes, and the value of this depends on how a function is called. Classes are syntax over prototypes, and ES modules split code across files. This unit belongs to the Functions and Scope stage and organises larger programs.

Stage: Functions and Scope · Part of the JavaScript roadmap · Last reviewed 19 November 2026

What to learn in Objects

Objects interview questions

How does this behave differently in arrow functions?

Arrow functions do not have their own this. They capture it from the enclosing scope at the time they are defined. That makes them good for callbacks inside methods, but unsuitable as object methods or constructors where a dynamic this is needed.

What is prototypal inheritance in JavaScript?

Every object has an internal link to a prototype object. When a property is not found on the object, the engine looks up the chain of prototypes until it finds it or reaches null. Classes are syntax built on top of this mechanism.

Where Objects fits in the JavaScript roadmap

Objects belongs to the Functions and Scope stage (beginner level), which takes about 28 hours. How code is organised.

Back to the full JavaScript roadmap