Q: 11
Which two console logs outputs NaN ?
Choose 2 answers
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 12
Refer to the code below:
for(let number =2 ; number <= 5 ; number += 1 ) {
// insert code statement here
}
The developer 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?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 13
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 this new requirement?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 14
A developer wants to set up a secure web server with Node.js. The developer creates a
directory locally called app-server, and the first file is app-server/index.js
Without using any third-party libraries, what should the developer add to index.js to create the
secure web server?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 15
developer wants to use a module named universalContainersLib and them call functions
from it.
How should a developer import every function from the module and then call the fuctions foo
and bar ?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 16
Refer the code below.
x=3.14;
function myfunction() {
"use strict";
y=x;
}
z=x;
myFunction();
Your Answer
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 17
Refer to the string below.
Const str=’Salesforce’;
Which two statements results in the word 'Sales'?
Your Answer
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 18
A developer has code that calculates a restaurant bill, but generates incorrect answers
while testing the code:
function calculateBill ( items ) {
let total = 0;
total += findSubTotal(items);
total += addTax(total);
total += addTip(total);
return total;
}
Which option allows the developer to step into each function execution within calculateBill?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 19
Refer to the following array:
Let arr1 = [ 1, 2, 3, 4, 5 ];
Which two lines of code result in a second array, arr2 being created such that arr2 is not
a reference to arr1?
Which two lines of code result in a second array, arr2 being created such that arr2 is not
a reference to arr1?Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 20
After user acceptance testing, the developer is asked to change the webpage background based on
user's location. This change was implemented and deployed for testing.
The tester reports that the background is not changing, however it works as required when viewing
on the developer's computer.
Which two actions will help determine accurate results?
Choose 2 answers
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Question 11 of 20 · Page 2 / 2