Official Bank 0/149

Salesforce Certified JavaScript Developer Exam (JS-Dev-101) - Salesforce Exam Questions

Last updated on June 20, 2026

97% Exam Compliance
149 Total Questions
1
Question
Refer to the code below: 01 funetion Person() (
02 thie. fixsttane = "Zoha'y
os}
05 Perscn.prototype = [
06 jek: x => ‘Developer’
onde
09 const myFather = new Peracn():
10 const result = myFather.firstiame + ' * + myFather.jeb()

What is the value of result after line 10 executes?
Options
A " John Developer"
B "undefined Developer"
C " John undefined"
D Error: myFather.job is not a function
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question
Refer to the code:
01 console.log('Start');
02 Promise.resolve('Success').then(function(value) {
03 console.log('Success');
04 });
05 console.log('End');

What is the output after the code executes successfully?
Options
A Start Success End
B Success Start End
C Start End Success
D End Start Success
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question
static delay = async delay => {
return new Promise(resolve => {
setTimeout(resolve, delay);
});
};
static asyncCall = async () => {
await delay(1000);
console.log(1);
};
console.log(2);
asyncCall();
console.log(3);
(Assume delay and asyncCall are in scope as functions.)

What is logged to the console?
Options
A 1 2 3
B 2 3 1
C 2 1 3
D 1 3 2
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question
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?
Options
A 1.2.3
B 1.2.0
C 1.1.4
D 2.0.0
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question
Which two code snippets show working examples of a recursive function?
Select 2
Options
A const sumToTen = numVar => {
if (numVar < 0)
return;
return sumToTen(numVar + 1);
};
B let countingDown = function(startNumber) {
if (startNumber > 0) {
console.log(startNumber);
return countingDown(startNumber - 1);
} else {
return startNumber;
}
};
(Note: Option D is shown here with corrected syntax: lowercase return and matching parentheses.)
C const factorial = numVar => {
if (numVar < 0) return;
if (numVar === 0) return 1;
return numVar * factorial(numVar - 1);
};
D function factorial(numVar) {
if (numVar < 0) return;
if (numVar === 0) return 1;
return numVar - 1;
}
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

Finish Practice?

Are you sure you want to finish? This will end your practice session.