Salesforce Certified JavaScript Developer I Practice Test - Questions Answers, Page 4
List of questions
Related questions
A team that works on a big project uses npm to deal with projects dependencies.
A developer added a dependency does not get downloaded when they execute npm install.
Which two reasons could be possible explanations for this?
Choose 2 answers
A developer is asked to fix some bugs reported by users. To do that, the developer adds a breakpoint for debugging.
Function Car (maxSpeed, color){
This.maxspeed =masSpeed;
This.color = color;
Let carSpeed = document.getElementById(' CarSpeed');
Debugger;
Let fourWheels =new Car (carSpeed.value, 'red');
When the code execution stops at the breakpoint on line 06, which two types of information are available in the browser console ?
Choose 2 answers:
At Universal Containers, every team has its own way of copying JavaScript objects. The code Snippet shows an implementation from one team:
Function Person() { this.firstName = "John"; this.lastName = 'Doe'; This.name =() => ( console.log('Hello $(this.firstName) $(this.firstName)'); )} Const john = new Person (); Const dan = JSON.parse(JSON.stringify(john)); dan.firstName
='Dan'; dan.name(); What is the Output of the code execution?
Refer to the code below:
Let textValue = '1984';
Which code assignment shows a correct way to convert this string to an integer?
A developer writers the code below to calculate the factorial of a given number.
Function factorial(number) {
Return number + factorial(number -1);
} factorial(3); What is the result of executing line 04?
Given the following code:
Let x =null; console.log(typeof x); What is the output of the line 02?
Which function should a developer use to repeatedly execute code at a fixed interval ?
Refer to the code below:
Function changeValue(obj) {
Obj.value = obj.value/2;
}
Const objA = (value: 10);
Const objB = objA; changeValue(objB); Const result = objA.value; What is the value of result after the code executes?
Given HTML below:
<div>
<div id ="row-uc"> Universal Container</div>
<div id ="row-aa">Applied Shipping</div>
<div id ="row-bt"> Burlington Textiles </div>
</div>
Which statement adds the priority = account CSS class to the universal Containers row ?
Refer to the code below: const addBy = ? const addByEight =addBy(8); const sum = addBYEight(50); Which two functions can replace line 01 and return 58 to sum?
Choose 2 answers
Question