Skip to main content
AssessIQ Sign in

Skill Test · JavaScript

JavaScript Online Test for Hiring & Assessment

A JavaScript online test measures a candidate's understanding of the language's runtime behaviour — closures, the event loop, async patterns, and prototype semantics — not just syntax recall. It surfaces the difference between developers who write working code in a familiar codebase and those who can reason about why JavaScript behaves the way it does.

Topic breakdown

What the JavaScript test covers

Closures and scope

Lexical scoping, the closure pattern, variable capture in loops, IIFE (immediately invoked function expressions), and the module pattern before ES6 modules.

Async JavaScript

The event loop and call stack, microtask vs macrotask queue, Promises (then/catch/finally, Promise.all/race/allSettled), and async/await error handling with try/catch.

ES6+ features

Arrow functions (and their this binding), destructuring (array and object), spread and rest operators, template literals, optional chaining (?.) and nullish coalescing (??).

Prototypes and this

Prototype chain traversal, Object.create, constructor functions vs class syntax, how this is bound in regular vs arrow functions, call/apply/bind.

DOM and events

DOM traversal (querySelector, closest), event delegation vs direct binding, event bubbling and capture, debounce and throttle patterns, and async fetch with error handling.

Modules and tooling concepts

ES module import/export semantics, named vs default exports, circular dependency risks, and what a bundler does at a conceptual level (not webpack config questions).

Sample question

The kind of question candidates answer

Async / event loop — mid level

What does the following code log, and in what order?

console.log('A');

setTimeout(() => console.log('B'), 0);

Promise.resolve().then(() => console.log('C'));

console.log('D');

Options

  • A. A, B, C, D
  • B. A, D, B, C
  • C. A, D, C, B ✓ Correct
  • D. A, C, D, B

What this question tests

The event loop priority order: synchronous code runs first (A, D), then the microtask queue drains (Promise.resolve = C), then the macrotask queue runs (setTimeout = B). Candidates who confuse macrotasks and microtasks choose B or D. This is a real source of race-condition bugs in production async JavaScript.

Who should take it

Roles this test screens for

Frontend Developer

Screens the JavaScript foundation before framework-specific interviews. Pair with the React test for a complete frontend screening pack.

Full-Stack Engineer

JavaScript on both sides of the stack. Combine with a Node.js add-on pack and an SQL test for a complete full-stack assessment.

Node.js / Backend Developer

Core language proficiency before Node-specific API and runtime behaviour questions. Async patterns and event loop understanding are especially relevant here.

Relevant for IT & technical hiring and campus recruitment in India.

Format & difficulty

Duration, format, and difficulty levels

Duration

30–90 min

Configurable per test

Format

MCQ + Live code

Output prediction + DOM scripting

Levels

Junior — Senior

ES5 basics to async internals

FAQ

Common questions about the JavaScript online test

How long is a JavaScript online test?

A JavaScript MCQ and output-prediction test typically runs 30–45 minutes. Tests with live JavaScript execution run 60–90 minutes. Duration is configurable.

Is the JavaScript test free on AssessIQ?

AssessIQ has a free tier. Paid plans add higher candidate volumes and advanced proctoring. See the pricing page.

Does the JavaScript test cover Node.js?

Core language features apply to both environments. Node-specific APIs are a separate add-on pack for backend Node.js role screening.

What ES version does the JavaScript test cover?

Questions cover ES6 through ES2022: arrow functions, destructuring, spread/rest, Promises, async/await, optional chaining, nullish coalescing, and ES modules.

What score is considered good on a JavaScript test?

For frontend roles, strong scores on closure and async questions are more predictive than raw totals. AssessIQ shows per-question breakdowns so you can assess where a candidate is strong beyond just the final number.

Can I combine the JavaScript test with a React test?

Yes. A JavaScript core pack followed by a React pack in a single session is a common frontend screening pattern. AssessIQ lets admins mix question packs per test.

Get started

Ready to screen JavaScript candidates?