| Exam Code/Number: | JavaScript-Developer-IJoin the discussion |
| Exam Name: | Salesforce Certified JavaScript Developer (JS-Dev-101) |
| Certification: | Salesforce |
| Question Number: | 149 |
| Publish Date: | Dec 01, 2026 |
|
Rating
100%
|
|
What are two unique features of fat-arrow functions compared to normal function definitions?
A developer creates a class that represents a news story based on the requirements that a Story should have a body, author, and view count. The code is shown below:
01 class Story {
02 // Insert code here
03 this.body = body;
04 this.author = author;
05 this.viewCount = viewCount;
06 }
07 }
Which statement should be inserted in the placeholder on line 02 to allow for a variable to be set to a new instance of a Story with the three attributes correctly populated?
01 function changeValue(obj) {
02 obj.value = obj.value / 2;
03 }
04 const objA = {value: 10};
05 const objB = objA;
06
07 changeValue(objB);
08 const result = objA.value;
What is the value of result after the code executes?
let sampleText = " The quick brown fox jumps " ;
Which three expressions return true for a substring?
Refer to the code below:
let inArray = [ [1, 2], [3, 4, 5] ];
Which two statements result in the array [1, 2, 3, 4, 5]?
(With corrected typing errors: usArray # inArray, .. # ....)
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