Get a glimpse of the real Javascript-Developer-I certification exam challenges with our free Salesforce Javascript-Developer-I practice test questions.
Question 1
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.
Question 2
Refer to the code below
let inArray = [[1,2],[3,4,5]];
which two statements results in the array [1,2,3,4,5]?
choose 2 answer
Question 3
At Universal Containers, every team has its own way of copying JavaScript objects. The code snippet shows an Implementation from one team:
What is the output of the code execution?
Question 4
A developer writes the code below to calculate the factorial of a given number
function sum(number){
return number * sum(number-1);
}
sum(3);
what is the result of executing the code.
Question 5
Refer to the code below:
let car1 = new Promise((_ ,reject)=> setTimeout(reject,2000,"Car1 crashed in"));
let car2 = new Promise(resolve => setTimeout(resolve,1500,"Car2 completed"));
let car3 = new Promise(resolve => setTimeout(resolve,3000,"Car3 completed"));
Promise.race([car1,car2,car3])
.then(value=>{
let result = `${value} the race.`;
}).catch(err=>{
console.log('Race is cancelled.',err);
});
What is the value of result when promise.race execues?
Master the Salesforce Certified JavaScript Developer I exam like never before! You’ve reviewed the free Javascript-Developer-I practice questions, but the actual Javascript Developer certification exam demands more. Elevate your preparation with Certsmarket premium Javascript-Developer-I practice exam questions.
Our Javascript Developer practice test questions are aligned with the current topics and meticulously mirror the Javascript-Developer-I real exam.
Gain invaluable insights to address your knowledge gaps and boost your confidence with Certsmarket Javascript-Developer-I realistic practice questions. Invest in your Salesforce Javascript-Developer-I exam success today!
Get Preparation Material Now!