Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Exam preparation

Salesforce JS-Dev-101 Exam Guide for the Developer

JS-Dev-101 is the Salesforce Certified JavaScript Developer exam, part of the Salesforce Developer certification. The official outline has 7 exam topics. Objects, Functions, and Classes carries the most weight (25%). 12 free practice questions with explanations are online, and each exam topic below links to the ones written for it.

JS-Dev-101 Exam Details

Exam Code
JS-Dev-101
Free Practice Questions
12
Full Question Set
147
Exam Topics
7
Last Updated
December 3, 2026
Exam Name
Salesforce Certified JavaScript Developer
Certification
Salesforce Developer
Difficulty Level
Professional
Technology
Front-end and/or back-end JavaScript applications development
Job Roles
Salesforce DevelopersJavaScript ProgrammerFront End Developer

JS-Dev-101 Exam Topics and Weights

Variables, Types, and Collections

23% of the exam

What this topic covers

Create and initialize variables, work with strings, numbers, and dates, and recognize how coercion and truthiness affect code. Manipulate arrays and JSON data, including handling date values and nullish fallbacks.

Does the nullish coalescing operator replace an empty string label?

No, the ?? operator supplies its fallback only when the label is null or undefined. An empty string is a valid label, so it stays as written. Use || only when you want every falsy value replaced, since it would also replace an empty string.

3 free JS-Dev-101 practice questions on Variables, Types, and Collections

Objects, Functions, and Classes

25% of the exam

What this topic covers

Choose suitable functions and build objects or classes to meet JavaScript requirements. Use modules correctly, and trace scope, execution order, and instance state.

Why should a class create its array field inside the constructor?

Assigning the array in the constructor gives each new instance its own array. If the array were shared on the prototype or as a module-level default, every delivery would change the same list. Example: this.items = in the constructor keeps each delivery's items separate.

2 free JS-Dev-101 practice questions on Objects, Functions, and Classes

Browser and Events

17% of the exam

What this topic covers

Handle browser events and propagation, update the DOM, and use browser APIs such as FileReader. Investigate behavior with browser developer tools.

How can one listener on a table body handle buttons added later?

Use event delegation. A click on any button bubbles up to the table body, so one listener on that stable parent receives it. Inside the handler, read event.target or call closest on it to find the clicked button and its row. New buttons need no extra listener.

2 free JS-Dev-101 practice questions on Browser and Events

Debugging and Error Handling

7% of the exam

What this topic covers

Handle failures at the right level, such as skipping malformed records without masking database errors. Use the console and breakpoints to trace and fix JavaScript behavior.

Where should a try and catch go when a batch has some malformed records?

Wrap each record in its own try and catch, so one malformed record is logged and skipped. Keep the awaited database call outside that catch, or rethrow its error, so real failures still reach the caller. A catch around the whole batch would hide those failures.

1 free JS-Dev-101 practice question on Debugging and Error Handling

Asynchronous Programming

13% of the exam

What this topic covers

Apply promises and other asynchronous patterns while preserving concurrency and error paths. Trace the event loop to determine when synchronous code and callbacks run.

Why does the synchronous update run before a promise callback?

The current JavaScript task runs to completion before the event loop picks up any queued callback. Promise reactions and setTimeout callbacks both wait, even with a zero delay. So a plain assignment on the line after a promise is scheduled still happens first.

2 free JS-Dev-101 practice questions on Asynchronous Programming

Server Side JavaScript

8% of the exam

What this topic covers

Select suitable Node.js implementations, CLI commands, packages, and frameworks for server-side requirements. Use core modules such as fs/promises for asynchronous file operations.

Which Node.js module offers promise-based file reading with an encoding?

Use the fs/promises module. It exposes promise versions of file functions, so you can await readFile with a path and an encoding such as utf8. Example: const text = await readFile(path, 'utf8') inside an async function. Use the callback-based fs module only when older code requires it.

1 free JS-Dev-101 practice question on Server Side JavaScript

Testing

7% of the exam

What this topic covers

Assess whether a JavaScript unit test checks the intended behavior and waits for asynchronous work. Signal completion reliably, such as by resolving a promise from a callback.

Why can a test pass before an asynchronous update finishes?

The test runner finishes a synchronous test right away, so an assertion placed before the promise settles checks nothing useful. Return the promise or use await, so the runner waits for the update before it checks the result.

1 free JS-Dev-101 practice question on Testing

Related Salesforce Exams

Continue to Free JS-Dev-101 Exam Questions