Question 41
Referto the following code:
Which two statement could be inserted at line 17 to enable the function call on line 18? Choose 2 answers
Question 42
A developer writes the code below to return a message to a user attempting to register a new username. If the username is available, a variable named msg is declared and assigned a value on line 03.
```javascript
function getAvailabilityMessage(item) {
if (getAvailability(item)) {
var msg = "Username available";
return msg;
}
}
Question 43
A developer implements a function that adds a few values.
function sum(num1, num2, num3) {
if (num3 === undefined) {
num3 = 0;
}
return num1 + num2 + num3;
}
Which three options can the developer invoke for this function to get a return value of 10?
Question 44
CRefer to the code below:
```javascript
let strNumber = '12345';
```
Which code snippet shows a correct way to convert this string to an integer?
Question 45
A developer has a web server running with Node.js. The command to start the web server is node server.js. The web server started having latency issues. Instead of a one second turnaround for web requests, the developer now sees a five second turnaround.
Which command can the web developer run to see what the module is doing during the latency period?
