1. Home
  2. Salesforce
  3. JS-Dev-101 Exam

JS-Dev-101 Salesforce Certified JavaScript Developer Exam Topics and Questions

Let's Practice Free Salesforce JS-Dev-101 Questions Aligned with Official Exam Topics

Follows Salesforce's official outline Updated 04 Nov, 2026 7 Topics
Reviewed by Thomas Lee, Salesforce JS-Dev-101 Certified Professional
Topic Content

This is the heaviest topic on the exam and the foundation for everything else. You need to show that you can declare, initialise, and manipulate data without stepping on type coercion traps or misunderstanding how JavaScript evaluates truthiness. The cost comes in the detail: knowing when a variable becomes undefined, how a string method differs from a number method, and why an array operation returns what it does. – Declaration, initialisation, and type behaviour You must know when to use...

See More

The question below asks you to predict the outcome of a type coercion scenario. Read the code carefully and decide what the expression evaluates to.

Sample Questions for Topic 1 : Variables, Types, and Collections
Q1

Given the following code:

01 let x = null;

02 console.log(typeof x);

What is the output of line 02?

Topic Content

This is the single largest topic by weight, and it measures whether you understand how JavaScript organises behaviour and state. The exam moves quickly from function declarations to object literals to ES6 classes, then tests whether you can read a block of code and predict what happens when scope chains intersect or when a method is called on the wrong context. The challenge is not writing functions from scratch; it is recognising which implementation satisfies a business rule and where...

See More

The question below presents a function implementation and a business requirement. Decide whether the function meets the requirement or identify the issue.

Sample Questions for Topic 2 : Objects, Functions, and Classes
Q2

Given a value, which three options can a developer use to detect if the value is NaN?

Topic Content

After two topics on language fundamentals, the exam shifts to the runtime environment. You need to show that you can respond to user interactions, query and modify the DOM, and use browser APIs to solve a business requirement. The weight is lower than the first two topics, but the questions are more applied: you are given a scenario and asked which event handler to attach, or which DOM method retrieves the correct element. The cost is in the detail of...

See More

The question below involves event propagation in a nested DOM structure. Trace the event flow and decide which handlers execute.

Topic Content

This is the lightest topic by weight, but it tests a skill that separates candidates who have debugged production code from those who have only read tutorials. You need to show that you can catch and handle errors without crashing the application, and that you can use console methods and breakpoints to investigate unexpected behaviour. The exam does not ask you to write a debugger; it asks you to recognise when an error will be thrown, how to catch it,...

See More

The question below shows code that may throw an error. Decide where to handle it and what the handler should do.

Topic Content

Asynchronous programming is where many candidates lose marks, because the mental model differs from synchronous execution and the exam tests that model directly. You need to show that you understand how callbacks, promises, and async/await work, and that you can predict the order of execution when the event loop schedules tasks. The weight is moderate, but the questions are dense: a single item might show a mix of synchronous code, promise chains, and setTimeout calls, then ask which console log...

See More

The question below mixes synchronous code, promises, and timers. Trace the execution order and decide which statement runs first.

Topic Content

The exam now moves to Node.js, and the questions test whether you can choose the right Node.js tool or module for a server-side requirement. You are not expected to write a full application, but you must recognise when a core module like fs or http is appropriate, which CLI command installs a package or runs a script, and which package manager suits a given scenario. The weight is low, but the topic is broad, and candidates who have never used...

See More

The question below describes a server-side requirement. Choose the Node.js module or tool that best satisfies it.

Topic Content

The final topic tests whether you can read a unit test and identify where it fails to cover the code under test. You are not writing tests from scratch; you are reviewing an existing test and deciding what it misses or how to make it more effective. The weight is low, but the skill is critical in professional JavaScript development, and the exam assumes you have written or maintained unit tests in a real codebase. The challenge is recognising an...

See More

The question below shows a function and its unit test. Identify the weakness in the test and decide how to improve it.

Ready to Start Practicing?

Access all questions and start your exam preparation journey

Upgrade to Full JS-Dev-101 Exam Questions πŸš€
Exams Made Simple. Success Made Possible.