Exam Code: JS-Dev-101
Exam Questions: 217
Salesforce Certified JavaScript Developer - Multiple Choice
Updated: 26 Nov, 2026
Viewing Page : 1 - 22
Practicing : 1 - 5 of 217 Questions
Question 1

Refer to the code below:new Promise((resolve, reject) => {const fraction = Math.random();if( fraction >0.5) reject('fraction > 0.5, ' + fraction);resolve(fraction);}).then(() =>console.log('resolved')).catch((error) => console.error(error)).finally(() => console.log(' when am I called?'));CaptureWhen does Promise.finally on line 08 get called?

Options :
Answer: D

Question 2

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

Options :
Answer: A,B,C

Question 3

What is the result of the code block?

Options :
Answer: D

Question 4

Refer to the code below:8Which value can a developer expect when referencing country,capital,cityString?

Options :
Answer: D

Question 5

Refer to code below:console.log(0);setTimeout(() => (console.log(1);});console.log(2);setTimeout(() => {console.log(3);), 0);console.log(4);In which sequence will the numbers be logged?

Options :
Answer: C

Viewing Page : 1 - 22
Practicing : 1 - 5 of 217 Questions

© Copyrights FreePDFQuestions 2026. All Rights Reserved

We use cookies to ensure that we give you the best experience on our website (FreePDFQuestions). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the FreePDFQuestions.