Home
The Mentoxis Guide

For senior and staff frontend candidates

Predict the output: 52 practice questions

40 output questions and 12 quick checks from the guide, in learning order. Type what you think the code prints, check it line by line, then read why. Want everything in one place? Get the free PDF.

Show

52 questions

Stage 1Language core

How JavaScript runs your code (hoisting)

Types, equality and coercion

Scope and closures

Currying and the infinite add

The value of this

Objects: creating them and property settings

Prototypes and inheritance

Array method polyfills: reduce and map

Copying and comparing data: deep clone and deep equal

Working with nested data: flatten arrays and objects

Stage 2Asynchronous JavaScript

The event loop: tasks, microtasks and rendering

Callbacks, promises and async/await

Promise.all, allSettled, race, any, and running a few at a time

Retry with exponential backoff

Debounce and throttle

Pub/sub: build an event emitter

Async utilities from real interviews: queue, batcher, rate limiter

Stage 3Browser platform

Loading scripts: async, defer and modules

DOM events and event delegation

Storing data in the browser: cookies and storage

Networking: HTTP, caching, CORS and real-time data

Stage 4Quality at scale

Performance and Core Web Vitals

Accessibility

Frontend security

Stage 5Building UIs

HTML and CSS essentials

React in depth