Salesforce Certified JavaScript Developer Online Practice Questions

Home / Salesforce / Salesforce Certified JavaScript Developer

Latest Salesforce Certified JavaScript Developer Exam Practice Questions

The practice questions for Salesforce Certified JavaScript Developer exam was last updated on 2025-09-15 .

Viewing page 1 out of 16 pages.

Viewing questions 1 out of 80 questions.

Question#1

developer is trying to convince management that their team will benefit from using
Node.js for a backend server that they are going to create. The server will be a web server that handles API requests from a website that the teamhas already built using HTML, CSS, and JavaScript.
Which three benefits of Node.js can the developer use to persuade their manager? Choose 3 answers:

A. Installs with its own package manager to install and manage third-party libraries.
B. Ensures stability with one major release every few years.
C. Performs a static analysis on code before execution to look for runtime errors.
D. Executes server-side JavaScript code to avoid learning a new language.
E. Uses non-blocking functionality for performant requesthandling .

Question#2

Refer to the followingcode:
class Vehicle{
constructor(plate){
this.plate = plate;
}
}
class Truck extends Vehicle{
constructor(plate, weight){
//Missing code
this.weight = weight;
}
displayWeight(){
console.log(`The truck ${this.plate} has a weight of ${this.weight}lb.`);
}
}let myTruck = new Truck('123Ab',5000);
myTruck.displayWeight();
Which statement should be added to missing code for the code to display 'The truck 123AB has a weight of 5000lb.

A. super(plate)
B. super.plate = plate
C. Vehicle.plate = plate
D. this.plate= plate

Question#3

Refer to the following array:
Let arr = [1, 2, 3, 4, 5];
Which three options result in x evaluating as [1,2]? Choose 3 answer

A. let x = arr. slice (2);
B. let x = arr. slice (0, 2);
C. let x arr.filter((a) => (return a <= 2 });
D. let x = arr.filter ((a) => 2 }) ;
E. let x =arr.splice(0, 2);

Question#4

Refer to the HTML below:



Which JavaScript statement results in changing “ The Lion.”?

A. document.querySelectorAll(‘$main $TONY’).innerHTML = ’“ The Lion
B. document.querySelector(‘$main li:second-child’).innerHTML = “The Lion ’;
C. document.querySelector(‘$main li.Tony’).innerHTML = ’“ The Lion ’;
D. document.querySelector(‘$main li:nth-child(2)’),innerHTML = “ The Lion. ’;

Question#5

A developer wrote a fizzbuzz function that when passed in a number, returns the following:
● ‘Fizz’ if the number is divisible by 3.
● ‘Buzz’ if the number is divisible by 5.
● ‘Fizzbuzz’ if the number is divisible by both 3 and 5.
● Empty string if the number is divisible by neither 3 or 5.
Which two test cases will properly test scenarios for the fizzbuzz function? Choose 2 answers

A. let res = fizzbuzz(5);console.assert (res === ‘ ’ );
B. let res = fizzbuzz(15);console.assert (res === ‘ fizzbuzz ’ )
C. let res = fizzbuzz(Infinity);console.assert (res === ‘ ’ )
D. let res = fizzbuzz(3);console.assert (res === ‘ buzz ’ )

Exam Code: Salesforce Certified JavaScript DeveloperQ & A: 230 Q&AsUpdated:  2025-09-15

 Get All Salesforce Certified JavaScript Developer Q&As