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
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.
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,argumentsorprototype, and can't be used withnew. - A closure is a function that remembers the variables of the scope it was created in.
call(thisArg, a, b)andapply(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
letandconstare block-scoped and have a temporal dead zone;varis function-scoped and hoisted asundefined.conststops reassignment, not changes to the object or array it holds.- Primitives: string, number, bigint, boolean, undefined, null, symbol.
typeof nullis"object". ===compares without coercion;==coerces.null == undefinedistrue;NaNequals nothing, not even itself.
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;removeEventListenerneeds 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.targetis the element the event started on;event.currentTargetis 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;.catchhandles rejections;.finallyruns either way.Promise.allfulfills when all fulfill and rejects on the first rejection;allSettledalways waits for every result.Promise.racesettles with the first to settle;Promise.anyfulfills with the first to fulfill, and rejects with anAggregateErroronly 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.jsruns a file;--inspectand--inspect-brkopen the debugger;--watchrestarts on changes;-eruns code;-pprints a result;--testruns tests.- Core modules:
fs,path,http,https,events,stream,os,url,crypto,child_process,worker_threads,util,zlibandbuffer. - CommonJS:
requireandmodule.exports. ES modules:importandexport, in.mjsfiles 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 { … }:catchruns only if something threw;finallyalways runs, even afterreturn.- Throw
Errorobjects, not strings, so you keep amessage, anameand astack. - Built-in types:
SyntaxError,ReferenceError(unknown variable),TypeError(wrong kind of value),RangeError(number out of range),URIError,EvalErrorandAggregateError. - Custom errors:
class ValidationError extends Errorwithsuper(message)andthis.name = "ValidationError"; check withinstanceof.
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.
toBecompares withObject.is(same value or same object);toEqualcompares contents;toStrictEqualalso checksundefinedproperties and classes.- Use
toBeCloseTofor decimals:0.1 + 0.2isn't exactly0.3. expect(() => fn()).toThrow(…): wrap the call in a function, or the error is thrown beforeexpectruns.
A study plan by weight
- 1. Measure where you startTake the free readiness check to see which sections you already know.
- 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. 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. 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
- Read the last sentence first. It tells you what is actually being asked ("Which pattern best fits?", "What should the team do first?").
- 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
varversuslet,==versus===, and whatthispoints to. - 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. - Mutating or not? Several options often differ only in whether a method changes the original array or object (
spliceversusslice,sort,push). Check what each returns as well as what it changes. - "Choose 2." means exactly two. Both must be right to score the question.
- 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.
- 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.