


Salesforce JavaScript Developer | CramWise Environment
Salesforce Certified JavaScript Developer | JS-Dev-101 Certification | JavaScript ES6+ | Variables & Data Types | Arrays & JSON | Objects, Functions & Classes | JavaScript Modules | DOM Manipulation | Browser Events | Asynchronous JavaScript | Promises & Async/Await | Node.js | Debugging | Unit Testing
Prepare for the Salesforce Certified JavaScript Developer Exam
Prepare for the Salesforce Certified JavaScript Developer (JS-Dev-101) certification exam with practice tests from CramWise Environment, covering core JavaScript programming, objects, functions, classes, browser APIs, asynchronous execution, Node.js, debugging and testing.
The Salesforce JavaScript Developer certification validates your ability to develop and maintain JavaScript applications using the language's core features and established programming practices.
Unlike Salesforce certifications centered on administration, Apex or platform configuration, this exam focuses primarily on JavaScript language fundamentals and application development skills.
The concepts apply to both front-end and back-end JavaScript development, including applications built using modern JavaScript frameworks and Salesforce Lightning Web Components.
These practice tests cover the seven official exam domains and focus on how JavaScript behaves when executed.
You'll review technical scenarios involving variable scope, type coercion, array manipulation, JSON, object inheritance, closures, classes, modules, DOM manipulation, browser events, promises, the event loop, Node.js and unit testing.
Many JavaScript certification questions require you to examine code, determine what happens during execution and identify why a particular implementation works or fails.
The practice questions emphasize that kind of reasoning, helping you develop a stronger understanding of JavaScript behavior rather than relying only on memorized definitions.
Understanding the JavaScript Developer Certification
The Salesforce Certified JavaScript Developer credential is intended for developers who build JavaScript applications and need to demonstrate their understanding of modern language features and software development concepts.
JavaScript is widely used to create interactive websites, browser applications, server-side services and reusable components.
Developers working with Salesforce also use JavaScript when building Lightning Web Components (LWC) and modern user interfaces.
However, the JS-Dev-101 exam is not primarily a Lightning Web Components certification.
It measures foundational, framework-independent JavaScript knowledge that can be applied across many development environments.
Candidates should understand how to:
Declare variables and manage data types.
Manipulate arrays, objects, strings, numbers and dates.
Interpret type coercion and truthy or falsy expressions.
Develop reusable functions and classes.
Understand lexical scope, closures and execution flow.
Import and export JavaScript modules.
Manipulate browser documents and handle events.
Work with asynchronous operations and promises.
Understand the JavaScript event loop.
Recognize Node.js modules and package management commands.
Diagnose errors and investigate code behavior.
Write and evaluate effective unit tests.
These topics form the foundation of the official Salesforce JavaScript Developer exam.
Complete Coverage of All Seven JavaScript Developer Exam Domains
Domain 1 — Variables, Types, and Collections (23%)
The Variables, Types, and Collections domain represents 23% of the official exam weighting.
It evaluates your ability to work with JavaScript variables, data types, operators, collections and structured information.
JavaScript Variables and Scope
Review how JavaScript variables are declared, initialized and accessed.
Topics include:
var
let
const
Variable declarations
Variable initialization
Global Scope
Function Scope
Block Scope
Lexical Scope
Variable shadowing
Hoisting
Temporal Dead Zone
Reassignment
Variable references
Strict mode
Understand how scope and declaration type influence the behavior of JavaScript code.
Practice interpreting what happens when variables are accessed, reassigned or declared inside different scopes.
JavaScript Data Types
Explore the primitive and reference data types used in JavaScript.
Topics include:
String
Number
Boolean
Undefined
Null
BigInt
Symbol
Objects
Arrays
Primitive vs. reference values
typeof Operator
Data type identification
Type conversion
Reference behavior
Practice distinguishing between values, references and JavaScript data types.
Type Coercion and Conversion
Understand how JavaScript converts values during expressions and comparisons.
Topics include:
Implicit Type Coercion
Explicit Type Conversion
String Conversion
Number Conversion
Boolean Conversion
Loose Equality (==)
Strict Equality (===)
Inequality Operators
NaN
Truthy Values
Falsy Values
Logical operators
Conditional expressions
Practice evaluating JavaScript expressions and identifying results affected by coercion.
Strings, Numbers, and Dates
Review common operations involving built-in JavaScript types.
Topics include:
String Methods
Template Literals
String Interpolation
String Manipulation
Number Methods
Math Object
Date Object
Date calculations
Date formatting
Numeric conversions
String comparisons
Built-in methods
Practice selecting appropriate methods for different data manipulation requirements.
Arrays and Collections
Explore how JavaScript works with collections of data.
Topics include:
Array Creation
Array Indexing
Array Iteration
map()
filter()
reduce()
forEach()
find()
some()
every()
slice()
splice()
push() and pop()
sort()
Array Destructuring
Spread Syntax
Rest Parameters
Mutable vs. immutable operations
Understand which methods modify an existing array and which return new values.
Practice tracing array operations and determining their final results.
JSON Manipulation
Review how JavaScript handles structured information.
Topics include:
JSON
JSON.parse()
JSON.stringify()
Nested Objects
Nested Arrays
Object Property Access
Dot Notation
Bracket Notation
JSON serialization
JSON deserialization
Working with API responses
Practice interpreting and manipulating JSON objects returned by APIs.
Domain 2 — Objects, Functions, and Classes (25%)
The Objects, Functions, and Classes domain is the largest section of the Salesforce JavaScript Developer exam.
It represents 25% of the official exam weighting.
This domain focuses on reusable code, object behavior, function execution, inheritance, classes, modules and scope.
JavaScript Functions
Review the different ways functions can be created and executed.
Topics include:
Function Declarations
Function Expressions
Arrow Functions
Anonymous Functions
Higher-Order Functions
Callback Functions
Default Parameters
Rest Parameters
Return Values
Function Parameters
Function Arguments
Closures
Lexical Environment
Recursion
Function execution
Reusable function design
Practice selecting suitable function implementations based on application requirements.
JavaScript Objects
Understand how objects store data and expose functionality.
Topics include:
Object Literals
Object Properties
Object Methods
Property Access
Computed Properties
Object Destructuring
Object Spread Syntax
Object References
this Keyword
Object.keys()
Object.values()
Object.entries()
Object.assign()
Object mutation
Object copying
Object composition
Practice interpreting object behavior and selecting an appropriate object implementation.
Prototypes and Inheritance
Review how JavaScript implements inheritance.
Topics include:
Prototype Chain
Prototypal Inheritance
Object.create()
Prototype Methods
Constructor Functions
Instance Properties
Inherited Properties
Method Resolution
Prototype Lookup
Object relationships
Understand how JavaScript searches for properties and methods through the prototype chain.
JavaScript Classes
Explore modern class syntax and object-oriented programming concepts.
Topics include:
class Keyword
Constructors
Class Methods
Static Methods
Static Properties
Private Fields
Getters and Setters
Inheritance
extends
super
Method Overriding
Class Instances
Object-Oriented Design
Reusable classes
Practice determining how class definitions and inheritance affect program behavior.
Scope, Closures, and Execution Flow
Understand how JavaScript executes functions and accesses variables.
Topics include:
Execution Context
Lexical Scope
Closures
Hoisting
Variable Shadowing
Function Scope
Block Scope
this Binding
call()
apply()
bind()
Arrow Function Behavior
Execution order
Function invocation
Practice tracing code that uses nested functions, closures and different execution contexts.
JavaScript Modules
Review how JavaScript applications organize reusable functionality.
Topics include:
ES Modules
import
export
Default Exports
Named Exports
Module Dependencies
Module Scope
Code Organization
Module Reusability
Dynamic Imports
Module loading
Modular application architecture
Practice identifying how exported functionality can be imported and used by another module.
Domain 3 — Browser and Events (17%)
The Browser and Events domain represents 17% of the exam weighting.
It evaluates how JavaScript interacts with web browsers, the Document Object Model and user-generated events.
Document Object Model (DOM)
Review how JavaScript accesses and modifies HTML elements.
Topics include:
Document Object Model
DOM Tree
document Object
querySelector()
querySelectorAll()
getElementById()
getElementsByClassName()
createElement()
appendChild()
remove()
textContent
innerHTML
classList
setAttribute()
getAttribute()
Dynamic HTML manipulation
DOM traversal
Practice identifying which DOM methods satisfy specific browser application requirements.
JavaScript Events
Understand how browsers handle user interactions.
Topics include:
Event Handling
addEventListener()
removeEventListener()
Event Objects
Event Targets
Event Handlers
Event Bubbling
Event Capturing
Event Propagation
stopPropagation()
preventDefault()
Event Delegation
Mouse Events
Keyboard Events
Form Events
Custom events
Practice determining the order in which event handlers execute and how event propagation affects application behavior.
Browser APIs
Explore browser capabilities available to JavaScript applications.
Topics include:
Window Object
Document Object
Browser Storage
localStorage
sessionStorage
Fetch API
Timers
setTimeout()
setInterval()
Browser Location
History API
Browser-specific functionality
Web API usage
Practice selecting appropriate browser APIs for a given requirement.
Browser Developer Tools
Review the tools developers use to investigate client-side JavaScript behavior.
Topics include:
Chrome DevTools
Browser Console
Sources Panel
Breakpoints
Watch Expressions
Call Stack
Network Panel
DOM Inspector
Console Logging
JavaScript Debugger
Performance Investigation
Runtime errors
Practice determining which browser developer tool can help identify a particular issue.
Domain 4 — Debugging and Error Handling (7%)
The Debugging and Error Handling domain represents 7% of the official exam weighting.
It focuses on identifying programming errors, handling exceptions and using debugging tools effectively.
JavaScript Error Handling
Review how JavaScript handles runtime exceptions.
Topics include:
try
catch
finally
throw
Error Object
TypeError
ReferenceError
SyntaxError
RangeError
Custom Errors
Error propagation
Exception handling
Recovery behavior
Error messages
Failure conditions
Practice identifying which error-handling structure is appropriate for a particular requirement.
JavaScript Debugging
Understand how to investigate unexpected code behavior.
Topics include:
console.log()
console.error()
console.warn()
Breakpoints
Conditional Breakpoints
Step Into
Step Over
Step Out
Call Stack
Variable Inspection
Watch Expressions
debugger Statement
Runtime investigation
Code tracing
Practice determining which debugging action helps identify the cause of an error.
Common JavaScript Bugs
Review mistakes that can affect program execution.
Topics include:
Undefined Variables
Incorrect Scope
Type Coercion Errors
Incorrect Function Arguments
Object Reference Errors
Unexpected Mutation
Promise Rejections
Incorrect Conditional Logic
Missing Return Statements
Asynchronous Timing Errors
Practice recognizing the underlying cause of incorrect JavaScript behavior.
Domain 5 — Asynchronous Programming (13%)
The Asynchronous Programming domain represents 13% of the official exam weighting.
It focuses on JavaScript's execution model, promises, callbacks and the event loop.
Synchronous vs. Asynchronous JavaScript
Understand how JavaScript handles operations that complete at different times.
Topics include:
Synchronous Execution
Asynchronous Execution
Callbacks
Nonblocking Operations
Execution Order
Asynchronous Tasks
Event Loop
Call Stack
Task Queue
Microtask Queue
Promise Reactions
Browser Scheduling
Timing considerations
Practice tracing execution order when synchronous and asynchronous operations appear in the same program.
JavaScript Promises
Review how promises represent asynchronous outcomes.
Topics include:
Promise
Pending State
Fulfilled State
Rejected State
resolve()
reject()
then()
catch()
finally()
Promise.all()
Promise.race()
Promise.allSettled()
Promise Chaining
Error Propagation
Asynchronous result handling
Practice determining how promise chains execute and how errors move through asynchronous operations.
Async and Await
Explore modern asynchronous JavaScript syntax.
Topics include:
async Functions
await
Promise Resolution
Sequential Execution
Concurrent Operations
Async Error Handling
try/catch with async/await
Promise Rejections
Asynchronous Function Returns
Async Control Flow
Data Fetching
Network request handling
Practice identifying appropriate async/await implementations and their execution behavior.
JavaScript Event Loop
Review how JavaScript schedules callbacks and asynchronous work.
Topics include:
Event Loop
Call Stack
Microtasks
Tasks
Promise Callbacks
setTimeout()
Event Handlers
Execution Scheduling
Asynchronous Ordering
Nonblocking Execution
Practice predicting the output of JavaScript programs that combine promises, timers and synchronous statements.
Domain 6 — Server Side JavaScript (8%)
The Server Side JavaScript domain represents 8% of the official examination.
It evaluates foundational Node.js knowledge, command-line tools, modules, frameworks and package management.
Node.js Fundamentals
Understand how JavaScript runs outside a web browser.
Topics include:
Node.js
Server-Side JavaScript
Node.js Runtime
Event-Driven Architecture
Nonblocking I/O
JavaScript on the Server
Node.js Applications
Server Processes
Request Handling
Backend Development
Asynchronous I/O
Practice recognizing situations where Node.js is an appropriate implementation choice.
Node.js Core Modules
Review common built-in modules and their purposes.
Topics include:
fs
path
http
https
url
events
process
os
stream
Buffer
File operations
Network communication
Event handling
Runtime environment information
Practice identifying the appropriate module for a particular requirement.
Node.js Command-Line Interface
Understand essential Node.js and npm commands.
Topics include:
node
npm
npm init
npm install
npm uninstall
npm run
npm test
Node.js CLI
Command-Line Arguments
Environment Variables
package.json
package-lock.json
Script execution
Package configuration
Practice selecting an appropriate command based on development requirements.
Node.js Package Management
Explore how Node.js applications manage dependencies.
Topics include:
npm
Package Dependencies
Development Dependencies
Semantic Versioning
Package Installation
Package Updates
Lockfiles
Dependency Management
Package Scripts
Node.js Libraries
Package Managers
Understand the role of package management in maintaining JavaScript applications.
Node.js Libraries and Frameworks
Review common server-side development approaches.
Topics include:
Node.js Frameworks
Express.js Concepts
HTTP Server Development
Routing
Middleware
Request Handling
Response Handling
Server-Side APIs
Application Architecture
Backend Services
Practice identifying when a framework or built-in Node.js functionality is appropriate.
Domain 7 — Testing (7%)
The Testing domain represents 7% of the official exam weighting.
It evaluates your ability to examine unit tests, identify weaknesses and determine how tests can be improved.
JavaScript Unit Testing
Review the foundations of automated testing.
Topics include:
Unit Testing
Test Cases
Test Assertions
Expected Results
Actual Results
Test Failures
Test Coverage
Positive Testing
Negative Testing
Boundary Testing
Edge Cases
Test Isolation
Test Reliability
Automated Testing
Practice evaluating whether a unit test correctly verifies the intended functionality.
JavaScript Testing Framework Concepts
Understand the general capabilities of JavaScript testing tools.
Topics include:
Test Suites
Test Runners
Assertions
Mocks
Stubs
Spies
Test Setup
Test Teardown
Asynchronous Testing
Test Execution
Testing Frameworks
Jest Concepts
The exam focuses on testing fundamentals rather than requiring expertise in a particular testing framework.
Identifying Ineffective Unit Tests
Review common weaknesses in test implementations.
Topics include:
Missing Assertions
Incorrect Assertions
Uncovered Conditions
Weak Test Coverage
Untested Edge Cases
Incorrect Test Expectations
Unnecessary Test Dependencies
Flaky Tests
Test Data Problems
Incomplete Validation
Asynchronous Test Issues
Practice identifying why a unit test fails to validate the intended behavior.
Improving Test Quality
Understand how tests can better protect application behavior.
Topics include:
Meaningful Assertions
Boundary Conditions
Positive and Negative Cases
Regression Testing
Reliable Test Data
Clear Test Structure
Isolated Tests
Test Maintenance
Defect Prevention
Code Quality
Practice selecting the modification that makes a unit test more effective.
JavaScript Code Analysis and Practice Scenarios
The CramWise Environment practice questions emphasize interpreting JavaScript code and understanding the behavior of common language features.
Variable Scope
A function contains variables declared using var, let and const.
Determine which variables are accessible and how scope affects their values.
Type Coercion
A JavaScript expression compares values of different types.
Determine whether coercion occurs and evaluate the final result.
Array Manipulation
A developer uses map(), filter(), reduce() and splice().
Identify how each operation affects the array and the returned value.
Objects and Inheritance
A class extends another class and overrides a method.
Determine which method executes and how inheritance affects the result.
JavaScript Closures
A function returns another function that references variables from its outer scope.
Evaluate how the variables are retained and accessed.
Browser Events
Multiple event handlers are registered on nested HTML elements.
Determine the order in which the handlers execute.
Asynchronous Execution
A script contains synchronous statements, promise callbacks and timers.
Predict the execution order using the JavaScript event loop.
Node.js Modules
A server-side application needs file-system access or HTTP request handling.
Identify the appropriate Node.js module or implementation approach.
Unit Testing
A function behaves incorrectly for certain inputs, but its existing unit test passes.
Determine which additional assertion or test case would identify the defect.
How to Use These Practice Tests
Begin by reviewing questions across all seven Salesforce JavaScript Developer exam domains.
Pay particular attention to Objects, Functions, and Classes (25%) and Variables, Types, and Collections (23%), which together account for 48% of the official exam weighting.
These domains require a solid understanding of JavaScript syntax, data structures, scope, inheritance and execution behavior.
For questions involving code, avoid selecting an answer based only on what the code appears intended to do.
Instead, trace the execution carefully.
Consider the values of variables, their scope, the behavior of operators, the mutation of objects and arrays, and the timing of asynchronous operations.
When reviewing an incorrect answer, identify which JavaScript rule explains the result.
Useful comparisons include:
var vs. let vs. const
== vs. ===
Truthy vs. Falsy Values
Primitive Values vs. Object References
map() vs. forEach()
slice() vs. splice()
Function Declarations vs. Function Expressions
Regular Functions vs. Arrow Functions
Classes vs. Prototypes
Synchronous vs. Asynchronous Execution
Promises vs. async/await
Tasks vs. Microtasks
Browser JavaScript vs. Node.js
Effective vs. Ineffective Unit Tests
Combine practice questions with writing and executing JavaScript code in a browser console or Node.js environment.
Official Salesforce Trailhead materials and JavaScript documentation are useful supporting resources.
Salesforce Certified JavaScript Developer Exam Overview
The Salesforce Certified JavaScript Developer certification validates foundational and intermediate JavaScript programming knowledge applicable to browser-based and server-side applications.
Official exam information:
Certification: Salesforce Certified JavaScript Developer
Exam Code: JS-Dev-101
Former Name: Salesforce Certified JavaScript Developer I
Certification Track: Developer
Exam Format: Multiple-choice and multiple-select questions
Scored Questions: 60
Additional Questions: Up to 5 unscored questions
Exam Duration: 105 minutes
Passing Score: 65%
Published Exam Guide Alignment: Summer '22
Registration Fee: $200 USD, plus applicable taxes
Retake Fee: $100 USD, plus applicable taxes
Delivery: Online proctored or authorized testing center
Reference Materials: Not permitted
Mandatory Prerequisites: None
Official exam domain weighting:
Exam DomainWeightVariables, Types, and Collections23%Objects, Functions, and Classes25%Browser and Events17%Debugging and Error Handling7%Asynchronous Programming13%Server Side JavaScript8%Testing7%Total100%
The three highest-weighted domains — Objects, Functions, and Classes; Variables, Types, and Collections; and Browser and Events — account for 65% of the examination.
The previously required Lightning Web Components Specialist superbadge was retired on October 1, 2025. It is no longer required to earn the credential.
Salesforce may update exam objectives, policies and pricing. Candidates should review the latest official exam guide before registering.
Who Should Take This Course?
This course is designed for developers preparing for the Salesforce Certified JavaScript Developer (JS-Dev-101) examination.
It is particularly relevant to:
JavaScript Developers validating their knowledge of the language.
Salesforce Developers building Lightning Web Components and JavaScript-based user interfaces.
Front-End Developers working with browsers, DOM APIs and interactive web applications.
Back-End Developers using Node.js and server-side JavaScript.
Full-Stack Developers working across browser and server environments.
Web Application Developers responsible for maintaining JavaScript applications.
Software Engineers strengthening knowledge of JavaScript execution and code behavior.
UI Engineers working with browser events and interface functionality.
Support Engineers diagnosing JavaScript application problems.
Certification Candidates preparing for the JS-Dev-101 examination.
Recommended Knowledge and Prerequisites
There are no mandatory Salesforce certification prerequisites for the JavaScript Developer exam.
Salesforce describes typical candidates as having approximately one to two years of experience developing front-end or back-end JavaScript applications.
Recommended knowledge includes:
JavaScript Fundamentals
ES6+ Syntax
Variables and Scope
JavaScript Data Types
Objects and Arrays
Functions and Classes
Closures and Inheritance
JavaScript Modules
HTML and CSS Fundamentals
Document Object Model
Browser Events
Promises
Async/Await
Event Loop
Node.js Fundamentals
Debugging
Unit Testing
Experience with Lightning Web Components can be useful for Salesforce developers, but it is not a formal prerequisite.
The exam does not require advanced knowledge of Apex, SOQL, Salesforce administration or Salesforce-specific configuration.
Its primary focus is the JavaScript language and general application development principles.
Salesforce JavaScript Developer Certification Skills Review
The Salesforce Certified JavaScript Developer exam evaluates whether you understand how JavaScript operates, not simply whether you recognize familiar syntax.
You need to be able to follow execution flow, work with data types, manipulate collections, implement functions and objects, and understand browser behavior.
You must also be comfortable evaluating asynchronous code, promises, the event loop, Node.js implementations, debugging techniques and unit tests.
These CramWise Environment JavaScript Developer practice tests provide a structured opportunity to assess your understanding of the seven official exam domains and identify topics requiring additional study.
The course emphasizes JavaScript ES6+, Variables, Data Types, Arrays, JSON, Functions, Objects, Classes, Closures, Modules, DOM, Browser Events, Promises, Async/Await, the Event Loop, Node.js, Debugging and Unit Testing.