Free Salesforce Javascript-Developer-I Exam Questions

Become Salesforce Certified with updated Javascript-Developer-I exam questions and correct answers

Page:    1 / 44      
Total 217 Questions | Updated On: Feb 18, 2025
Add To Cart
Question 1

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


Answer: A,B,C
Question 2

Given the code below:
const copy = JSON.stringify([ new String(' false '), new Bollean( false ), undefined ]);
What is the value of copy?


Answer: D
Question 3

Refer to the following code:
class Vehicle{
constructor(plate){
this.plate = plate;
}
}
class Truck extends Vehicle{
constructor(plate, weight){
//Missing code
this.weight = weight;
}
displayWeight(){
console.log(`The truck ${this.plate} has a weight of ${this.weight}lb.`);
}
}let myTruck = new Truck('123Ab',5000);
myTruck.displayWeight();
Which statement should be added to missing code for the code to display 'The truck 123AB has a
weight of 5000lb.


Answer: A
Question 4

Considering type coercion, what does the following expression evaluate to?
True + '13' + NaN


Answer: D
Question 5

Refer to the expression below:
Let x = ('1' + 2) == (6 * 2);
How should this expression be modified to ensure that evaluates to false?


Answer: B
Page:    1 / 44      
Total 217 Questions | Updated On: Feb 18, 2025
Add To Cart

© Copyrights DumpsCertify 2025. All Rights Reserved

We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the DumpsCertify.