Last Updated On : 29-Jun-2026


Salesforce Certified JavaScript Developer - JS-Dev-101 Practice Test

Prepare with our free Salesforce Certified JavaScript Developer - JS-Dev-101 sample questions and pass with confidence. Our Salesforce-JavaScript-Developer practice test is designed to help you succeed on exam day.

271 Questions
Salesforce 2026

Which actions can be done using the JavaScript browser console?

A. Run code that’s not related to the page

B. View and change the DOM of the page

C. Display a report showing the performance of a page

D. Change the DOM and the JavaScript code of the page

E. View and change security cookies

B.   View and change the DOM of the page

Refer to the code below:

< html >

< body >

< div id= " logo " > Hello Logo! < /div >

< button id= " test " > Click me < /button >

< /body >

< script >

function printMessage(event) {

console.log( ' This is a test message ' );

}

let el = document.getElementById( ' test ' );

el.addEventListener( " click " , printMessage, false);

< /script >

< /html >

Which action should be done?

A. Add event.removeEventListener(); to window.onload event handler

B. Add event.removeEventListener(); to printMessage function

C. Add event.stopPropagation(); to printMessage function

D. Add event.stopPropagation(); to window.onload event handler

C.   Add event.stopPropagation(); to printMessage function

Why does second have access to variable a?

A. Inner function ' s scope

B. Outer function ' s scope

C. Prototype Chain

D. Hoisting

B.   Outer function ' s scope

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

A. value === Number.NaN

B. value == NaN

C. isNaN(value)

D. Object.is(value, NaN)

C.   isNaN(value)
D.   Object.is(value, NaN)

A developer publishes a new version of a package with new features that do not break backward compatibility. The previous version number was 1.1.3.

Following semantic versioning formats, what should the new package version number be?

A. 1.2.3

B. 1.1.4

C. 2.0.0

D. 1.2.0

D.   1.2.0

Salesforce-JavaScript-Developer Exam Questions - Home Previous
Page 3 out of 55 Pages