A developer has the following arrayof hourly wages:
Let arr = (8, 5, 9, 75, 11, 25, 7, 75, , 13, 25);
For workers making less than $10 an hour rate should be multiple by 1.25 and returned in a new array.
How should the developer implement the request?
A developer needs to debug a Node.js web server because a runtime error keeps occurring at one of the endpoints.
The developer wants totest the endpoint on a local machine and make the request against a local server to look at the behavior. In the source code, the server, js file will start the server. the developer wants to debug the Node.js server only using the terminal.
Which commandcan the developer use to open the CLI debugger in their current terminal window?
Given the HTML below:
Which statement adds thepriority-account css class to the Applied Shipping row?
A developer wrote the following code to test a sum3 function that takes in an array of numbers and returns the sum of the first three numbers in the array, and the test passes.
A different developer made changes to the behavior of sum3 to instead sum only the first two numbers present in the array.
Which two results occur when running this test on the updated sum3 function?
Choose 2 answers
Refer to the following code:
function test (val) {
If (val === undefined) {
return ‘Undefinedvalues!’ ;
}
if (val === null) {
return ‘Null value! ’;
}
return val;
}
Let x;
test(x);
What is returned by the function call on line 13?
Refer to the code below
let inArray = [[1,2],[3,4,5]];
which two statements results in the array [1,2,3,4,5]?
choose 2 answer
Which three statements are true about promises ?
Choose 3 answers
Which code statement correctly retrieves and returns an object from localStorage?
Referto the code below:
new Promise((resolve, reject) => {
const fraction = Math.random();
if( fraction >0.5)reject("fraction > 0.5, " + fraction);
resolve(fraction);
})
.then(() =>console.log("resolved"))
.catch((error) => console.error(error))
.finally(() =>console.log(" when am I called?"));
When does Promise.finally on line 08 get called?
A developer is setting up a Node,js server and is creating a script at the root of the source code, index,js, that will start the server when executed. The developer declares a variable that needsthe folder location that the code executes from.
Which global variable can be used in the script?
PDF + Testing Engine
|
---|
$66 |
Testing Engine
|
---|
$50 |
PDF (Q&A)
|
---|
$42 |
Salesforce Free Exams |
---|
![]() |