Crackpad
← All topics

JavaScript & TypeScript interview preparation

Language basics, functions and scope, objects and this, asynchronous JavaScript and the event loop, the DOM, performance, and TypeScript. Each question gives the answer first, then the reasoning and code. Click a question to reveal the answer.

LANGUAGE BASICS

Language basics

CORE
CORE
CORE
HOT
TRICKY
FUNCTIONS & SCOPE

Functions and scope

CORE
HOT
CORE
TRICKY
HOT
OBJECTS & THIS

Objects and this

HOT
CORE
HOT
TRICKY
ASYNC

Asynchronous JavaScript

CORE
CORE
HOT
TRICKY
HOT
TRICKY
HOT
HOT
THE BROWSER

The browser

CORE
HOT
CORE
PERFORMANCE

Performance

HOT
HOT
TRICKY
CORE
TYPESCRIPT

TypeScript

CORE
HOT
HOT
CORE
HOT
TRICKY