Exam Code: JS-Dev-101
Exam Questions: 217
Salesforce Certified JavaScript Developer - Multiple Choice
Updated: 15 Jul, 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

Teams at Universal Containers (UC) work on multiple JavaScript projects at the same time.UC is thinking about reusability and how each team can benefit from the work of others.Going open-source or public is not an option at this time.Which option is available to UC with npm?

Options :
Answer: A

Question 3

A developer has a web server running with Node.js. The command to start the web server is node server.js. The web server started havinglatency issues. Instead of a one second turnaround for web requests, the developer now sees a five second turnaround.Which command can the web developer run to see what the module is doing during the latency period?

Options :
Answer: D

Question 4

Given two expressions var1 and var2. What are two valid ways to return the logical ANDof the two expressions and ensure it is data type Boolean ?Choose 2 answers:

Options :
Answer: A,D

Question 5

A developer is working on an ecommerce website where the delivery date is dynamicallycalculated based on the current day. The code line below is responsible for this calculation.Const deliveryDate = new Date ();Due to changes in the business requirements, the delivery date must now be today'sdate + 9 days.Which code meets this new requirement?

Options :
Answer: A

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.