| Exam Code/Number: | JavaScript-Developer-IJoin the discussion |
| Exam Name: | Salesforce Certified JavaScript Developer (JS-Dev-101) |
| Certification: | Salesforce |
| Question Number: | 149 |
| Publish Date: | Sep 02, 2026 |
|
Rating
100%
|
|
Considering type coercion, what does the following expression evaluate to?
true + ' 13 ' + NaN
A team at Universal Containers works on a big project and uses Yarn to deal with the project's dependencies.
A developer added a dependency to manipulate dates and pushed the updates to the remote repository. The rest of the team complains that the dependency does not get downloaded when they execute yarn.
What could be the reason for this?
Which statement accurately describes an aspect of promises?
Refer to the code below:
01 new Promise((resolve, reject) = > {
02 const fraction = Math.random();
03 if (fraction > 0.5) reject( ' fraction > 0.5, ' + fraction);
04 resolve(fraction);
05 })
06 .then(() = > console.log( ' resolved ' ))
07 .catch((error) = > console.error(error))
08 .finally(() = > console.log( ' when am I called? ' ));
When does Promise.finally on line 08 get called?
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?
Salesforce.JavaScript-Developer-I.v2025-09-22.q158
Sep 22, 2025
Salesforce.JavaScript-Developer-I.v2024-07-03.q126
Jul 03, 2024
Salesforce.JavaScript-Developer-I.v2023-09-09.q190
Sep 09, 2023
Salesforce.JavaScript-Developer-I.v2022-08-25.q134
Aug 25, 2022
Salesforce.JavaScript-Developer-I.v2022-04-08.q125
Apr 08, 2022
Enter your email address to download Salesforce.JavaScript-Developer-I.premium Dumps