Exam guide · updated 2 December 2026

How to pass the JavaScript Developer (JS-Dev-101) exam

JS-Dev-101 is a JavaScript exam rather than a Salesforce one: it tests the language in the browser and in Node.js. Objects, Functions, and Classes (25%) and Variables, Types, and Collections (23%) make up almost half of it, so the language core comes first.

Reviewed by Nick Gorgotsias, Founder of ForceDigestBuilt from the JS-Dev-101 exam outline of 23 November 2026 and Salesforce's official exam page, checked on 30 November 2026.

The JS-Dev-101 exam in numbers

Questions60 scoredplus up to five unscored
Time105 minutesabout 1 min 37 s a question
Sections7biggest: Objects, Functions, and Classes, 25%
FeeUSD 200retake USD 100 plus tax

No prerequisite. You can take it online (proctored) or at a test centre, in English, Japanese, French and Spanish. Official exam page. No passing score is published there; here's what to aim for instead.

Where the marks are

Each section's weight is the share of the scored questions it gets. Study in proportion: an hour on a 25% section is worth more than an hour on a 7% one.

  1. Objects, Functions, and Classes25% about 15 questions
  2. Variables, Types, and Collections23% about 14 questions
  3. Browser and Events17% about 10 questions
  4. Asynchronous Programming13% about 8 questions
  5. Server Side JavaScript8% about 5 questions
  6. Debugging and Error Handling7% about 4 questions
  7. Testing7% about 4 questions

What to know, section by section

Biggest section first. Each one is a chapter of the JS-Dev-101 study guide; here is what it expects you to be able to do, and a few of its key facts.

25% · about 15 questions

Objects, Functions, and Classes

How to choose between function declarations, expressions and arrow functions; use closures, call, apply and bind; build and work with objects and prototypes; write classes with inheritance, static members and private fields; import and export ES modules; and trace scope, hoisting, this and execution order.

You should be able to

  • Choose the best function implementation for a requirement
  • Apply the fundamentals of objects to solve a requirement
  • Apply the fundamentals of classes to solve a requirement
  • Use JavaScript modules
  • Analyze variable scope and execution flow in a block of code

Key facts

  • Function declarations are hoisted with their body; function expressions and arrow functions aren't usable before their line.
  • Arrow functions have no own this, arguments or prototype, and can't be used with new.
  • A closure is a function that remembers the variables of the scope it was created in.
  • call(thisArg, a, b) and apply(thisArg, [a, b]) run a function now; bind(thisArg) returns a new function.

23% · about 14 questions

Variables, Types, and Collections

How to declare and initialize variables with var, let and const; work with strings, numbers and dates; predict type coercion and truthy or falsy values; manipulate arrays with mutating and non-mutating methods, Sets and Maps; and read and write JSON.

You should be able to

  • Create variables and initialize them correctly with var, let and const
  • Use strings, numbers and dates effectively
  • Predict type coercion and its effects
  • Distinguish truthy and falsy values
  • Manipulate data with arrays
  • Work with JSON responses

Key facts

  • let and const are block-scoped and have a temporal dead zone; var is function-scoped and hoisted as undefined.
  • const stops reassignment, not changes to the object or array it holds.
  • Primitives: string, number, bigint, boolean, undefined, null, symbol. typeof null is "object".
  • === compares without coercion; == coerces. null == undefined is true; NaN equals nothing, not even itself.
Read this chapter free

17% · about 10 questions

Browser and Events

How to listen for and handle events, control propagation with bubbling, capturing and delegation, find and change elements in the DOM, use browser developer tools to inspect code, and pick the right browser API such as Web Storage, fetch, timers and the History API.

You should be able to

  • Utilize events, event handlers and propagation
  • Evaluate the DOM to determine its behavior
  • Use browser developer tools to inspect code behavior
  • Utilize the browser-specific APIs for a given requirement

Key facts

  • el.addEventListener(type, handler, options) adds a listener; removeEventListener needs the same function reference.
  • Events run in three phases: capturing (window down to the target), target, and bubbling (back up). Listeners run in the bubbling phase unless { capture: true }.
  • event.target is the element the event started on; event.currentTarget is the element whose listener is running.
  • stopPropagation() stops the event moving to other elements; preventDefault() stops the browser's default action, like submitting a form.

13% · about 8 questions

Asynchronous Programming

How callbacks, promises and async functions let JavaScript wait without blocking, how to chain and combine promises with all, allSettled, race and any, and how the event loop decides the order of synchronous code, microtasks and timers.

You should be able to

  • Apply asynchronous programming concepts
  • Use the event loop and event monitoring to determine outcomes

Key facts

  • A promise is pending, then either fulfilled with a value or rejected with a reason; once settled it never changes.
  • .then(onFulfilled) returns a new promise, so calls chain; .catch handles rejections; .finally runs either way.
  • Promise.all fulfills when all fulfill and rejects on the first rejection; allSettled always waits for every result.
  • Promise.race settles with the first to settle; Promise.any fulfills with the first to fulfill, and rejects with an AggregateError only if all reject.

8% · about 5 questions

Server Side JavaScript

When Node.js is a good fit, how to run, debug and watch scripts with the node command, which core modules and frameworks to use for a requirement, and how npm manages packages with package.json, semantic versioning, lock files and commands like install, ci, run and npx.

You should be able to

  • Infer which Node.js implementation is a good solution
  • Infer which Node.js CLI command is a good solution
  • Know the core Node.js modules and infer which library or framework is a good solution
  • Distinguish which Node.js package management solution is the most fitting

Key facts

  • Node.js runs JavaScript outside the browser on the V8 engine with an event loop and non-blocking I/O: great for APIs, real-time apps and streaming, weak for long CPU-heavy work.
  • node app.js runs a file; --inspect and --inspect-brk open the debugger; --watch restarts on changes; -e runs code; -p prints a result; --test runs tests.
  • Core modules: fs, path, http, https, events, stream, os, url, crypto, child_process, worker_threads, util, zlib and buffer.
  • CommonJS: require and module.exports. ES modules: import and export, in .mjs files or with "type": "module" in package.json.

7% · about 4 questions

Debugging and Error Handling

How to handle errors with try, catch and finally, throw and extend the built-in error types, handle errors in asynchronous code, and use the console and breakpoints to find out why code misbehaves.

You should be able to

  • Handle errors properly
  • Use the console and breakpoints to debug code

Key facts

  • try { … } catch (err) { … } finally { … }: catch runs only if something threw; finally always runs, even after return.
  • Throw Error objects, not strings, so you keep a message, a name and a stack.
  • Built-in types: SyntaxError, ReferenceError (unknown variable), TypeError (wrong kind of value), RangeError (number out of range), URIError, EvalError and AggregateError.
  • Custom errors: class ValidationError extends Error with super(message) and this.name = "ValidationError"; check with instanceof.

7% · about 4 questions

Testing

How to write unit tests with describe, test and expect, choose the right matcher, spot tests that pass without proving anything, and make them effective with edge cases, awaited async code, mocks, spies and fake timers.

You should be able to

  • Determine where a unit test is ineffective and modify it to make it more effective

Key facts

  • A unit test arranges inputs, acts by calling the code, and asserts the result; a test with no assertion proves nothing.
  • toBe compares with Object.is (same value or same object); toEqual compares contents; toStrictEqual also checks undefined properties and classes.
  • Use toBeCloseTo for decimals: 0.1 + 0.2 isn't exactly 0.3.
  • expect(() => fn()).toThrow(…): wrap the call in a function, or the error is thrown before expect runs.

A study plan by weight

  1. 1. Measure where you startTake the free readiness check to see which sections you already know.
  2. 2. Study the biggest sections firstObjects, Functions, and Classes (25%), then Variables, Types, and Collections (23%), then Browser and Events (17%), then Asynchronous Programming (13%), then Server Side JavaScript (8%), then Debugging and Error Handling (7%), then Testing (7%). The whole study guide is about 6 hours of reading.
  3. 3. Quiz each section to the lineAfter each chapter, quiz yourself on it until you score 85% or more, and clear every question you got wrong.
  4. 4. Sit full timed exams60 questions in 105 minutes, like the real one. Book when two in a row reach 85% and no section is below 75%.

On exam day

  1. Read the last sentence first. It tells you what is actually being asked ("Which pattern best fits?", "What should the team do first?").
  2. Run the code in your head, line by line. Many questions show a snippet and ask what it logs. Track each variable's value and type as you go, and watch for var versus let, == versus ===, and what this points to.
  3. Mind the order of async code. Synchronous code runs first, then microtasks (promise callbacks), then tasks such as setTimeout. Sketch the queues on your scratch paper when a question mixes them.
  4. Mutating or not? Several options often differ only in whether a method changes the original array or object (splice versus slice, sort, push). Check what each returns as well as what it changes.
  5. "Choose 2." means exactly two. Both must be right to score the question.
  6. Flag and move on. If a question takes more than two minutes, flag it and come back. Leave five minutes at the end for flagged questions.
  7. Answer everything. An unanswered question can't score; a reasoned guess might.

Try it before you study

The JavaScript Developer Practice Exams package has 264 practice questions, each with its explanation, and a free trial: the readiness check and the Variables, Types, and Collections chapter.

Questions about the JS-Dev-101 exam

Start with one exam, or open them all.

Buy one certification's package for $15, or get all 50 certifications on ForceDigest with Lifetime Access for $79 once. Updates are included, with a 60-day money-back guarantee.

  • 13 study tools in every package
  • Every answer explained
  • Updates when an outline changes
  • 60-day money-back guarantee
  • One payment, no subscription
  • Exercises in a free Developer Edition org