Exam Code: JavaScript-Developer-I (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Salesforce Certified JavaScript Developer I
Certification Provider: Salesforce
Free Today! Guaranteed Training- Pass JavaScript-Developer-I Exam.
Also have JavaScript-Developer-I free dumps questions for you:
NEW QUESTION 1
Refer to the code below:
Async funct on functionUnderTest(isOK) { If (isOK) return ‘OK’ ;
Throw new Error(‘not OK’);
)
Which assertion accuretely tests the above code?
Answer: D
NEW QUESTION 2
Refer to the following code:
What is the output line 11?
Answer: C
NEW QUESTION 3
Which three browser specific APIs are available for developers to persist data between page loads ? Choose 3 answers
Answer: ABE
NEW QUESTION 4
Refer to the following code:
Let sampleText = ‘The quick brown foxjumps’;
A developer needs to determine if a certain substring is part of a string. Which three expressions return true for the given substring ?
Choose 3 answers
Answer: BDE
NEW QUESTION 5
Given the code below:
What should a developer insert at line 15 to output the following message using the method ?
> SNEGeneziz is loading a cartridgegame: Super Monic 3x Force . . .
Answer: B
NEW QUESTION 6
Refer to the HTML below:
Answer: D
NEW QUESTION 7
Refer to following code: class Vehicle { constructor(plate) { This.plate =plate;
}
}
Class Truck extends Vehicle { constructor(plate, weight) {
//Missing code This.weight = weight;
}
displayWeight() {
console.log(‘Thetruck ${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: B
NEW QUESTION 8
A developer is working on an ecommerce website where the delivery date is dynamically calculated based on the current day. The code line below is responsible for this calculation. Const deliveryDate = new Date ();
Due to changes in the business requirements, the delivery date must now be today’s date + 9 days.
Which code meets thisnew requirement?
Answer: A
NEW QUESTION 9
Which option is true about the strict mode in imported modules?
Answer: B
NEW QUESTION 10
developer removes the HTML class attribute from the checkout button, so now it is simply:
<button>Checkout</button>.
There is a test to verifythe existence of the checkout button, however it looks for a button with class= “blue”. The test fails because no such button is found.
Which type of test category describes this test?
Answer: D
NEW QUESTION 11
Refer to the code below:
Let foodMenu1 =[‘pizza’, ‘burger’, ‘French fries’]; Let finalMenu = foodMenu1; finalMenu.push(‘Garlic bread’);
What is the value of foodMenu1 after the code executes?
Answer: B
NEW QUESTION 12
Given the code below:
What is logged to the console?
Answer: D
NEW QUESTION 13
Refer to the code below:
for(let number =2 ; number <= 5 ; number += 1 ) {
// insert code statement here
}
Thedeveloper needs to insert a code statement in the location shown. The code statement has these requirements:
* 1. Does require an import
* 2. Logs an error when the boolean statement evaluates to false
* 3. Works in both the browser and Node.js
Which meet the requirements?
Answer: B
NEW QUESTION 14
Refer to the code below:
Line 05 causes an error.
What are the values of greeting and salutation once code completes?
Answer: A
NEW QUESTION 15
Refer to the code below: Let textValue = ’1984’;
Which code assignment shows a correct way to convert this string to an integer?
Answer: A
NEW QUESTION 16
Why would a developer specify a package.jason as a developed forge instead of a dependency ?
Answer: B
NEW QUESTION 17
Which two console logs output NaN? Choose 2 answers | |
Answer: BD
NEW QUESTION 18
developer uses the code below to format a date.
After executing, what is the value offormattedDate?
Answer: A
NEW QUESTION 19
Which statement accurately describes the behaviour of the async/ await keyworks ?
Answer: B
NEW QUESTION 20
......
P.S. Easily pass JavaScript-Developer-I Exam with 157 Q&As Thedumpscentre.com Dumps & pdf Version, Welcome to Download the Newest Thedumpscentre.com JavaScript-Developer-I Dumps: https://www.thedumpscentre.com/JavaScript-Developer-I-dumps/ (157 New Questions)