- Home
- Salesforce Certification
- JS-Dev-101 Exam
- Salesforce.JS-Dev-101.dumpsfiles Dumps
Free Salesforce JS-Dev-101 Exam Dumps Questions & Answers
| Exam Code/Number: | JS-Dev-101Join the discussion |
| Exam Name: | Salesforce Certified JavaScript Developer - Multiple Choice |
| Certification: | Salesforce |
| Question Number: | 149 |
| Publish Date: | Jul 20, 2026 |
|
Rating
100%
|
|
Total 149 questions
Correct implementation of try...catch for countsDeep():
A developer has 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 nor 5.
Which two test cases properly test scenarios for the fizzbuzz function?
Refer to the code snippet:
01 let array = [1, 2, 3, 4, 4, 5, 4, 4];
02 for (let i = 0; i < array.length; i++) {
03 if (array[i] === 4) {
04 array.splice(i, 1);
05 i--;
06 }
07 }
What is the value of array after the code executes?
Refer to the code below:
01 async function functionUnderTest(isOK) {
02 if (isOK) return 'OK';
03 throw new Error('not OK');
04 }
Which assertion accurately tests the above code?
Refer to the code below:
01 function myFunction(reassign) {
02 let x = 1;
03 var y = 1;
04
05 if (reassign) {
06 let x = 2;
07 var y = 2;
08 console.log(x);
09 console.log(y);
10 }
11
12 console.log(x);
13 console.log(y);
14 }
What is displayed when myFunction(true) is called?