A developer is wondering whether to use, Promise.then or Promise.catch, especially when a Promise throws an error?Which two promises are rejected?Which 2 are correct?
Answer(s): B,C
Refer to code below:function Person() {this.firstName = 'John';}Person.prototype ={Job: x => `Developer'};const myFather = new Person();const result=myFather.firstName + ` ` + myFather.job(); What is the value of the result after line 10 executes?
Answer(s): A
Universal Containers (UC) notices that its application that allows users to search for accounts makes a network request each time a key is pressed. This results in too many requests for the server to handle.Address this problem, UC decides to implement a debounce function on string change handler.What are three key steps to implement this debounce function? Choose 3 answers:
Answer(s): A,B,C
Refer to the following object:const cat ={firstName: `Fancy',lastName: ` Whiskers',Get fullName() {return this.firstName + ` ` + this.lastName;}};How can a developer access the fullName property for cat?
Refer tofollowing code:class Vehicle {constructor(plate) {This.plate =plate;}}Class Truck extends Vehicle {constructor(plate, weight) {//Missing codeThis.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 line 09 for the code to display `The truck 123AB has a weight of 5000lb.'?
Answer(s): B
Post your Comments and Discuss Salesforce Certified JavaScript Developer I exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the Certified JavaScript Developer I content, but please register or login to continue.