Refer to the code below:Let car1 = new Promise((_ , reject) =>setTimeout(reject, 2000, "car 1 crashed in" =>Let car2 =new Promise(resolve => setTimeout(resolve, 1500, "car 2 completed") Let car3 =new Promise(resolve =>setTimeout(resolve, 3000, "car 3 completed") Promise.race(( car1, car2, car3)).then (value => (Let result = `$(value) the race.';)}.catch(arr => {console.log("Race is cancelled.", err);});What is the value of result when Promise.race executes?
Answer(s): B
Refer to the following code:Let sampleText = `The quick brown fox jumps';A developer needs to determine if a certainsubstring is part of a string. Which three expressions return true for the given substring ? Choose 3 answers
Answer(s): B,D,E
Given two expressions var1 and var2. What are two valid ways to return the logical AND of the two expressions and ensure it is data type Boolean ? Choose 2 answers:
Answer(s): A,D
Cloud Kicks has a class to represent items for sale in an online store, as shown below:Class Item{constructor (name, price){this.name = name;this.price = price;}formattedPrice(){return `s' + String(this.price);}}A new business requirement comes in that requests a ClothingItem class that should have all of the properties and methods of the Item class but will also have properties that are specific to clothes.Which line of code properly declares the clothingItem class such that it inherits from Item?
Answer(s): D
Refer to the code below:Line 05 causes an error.What are the values of greeting and salutation once code completes?
Answer(s): A
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.