Question 141
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?
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?
Question 142
Given the following code:

What is the output of line 02?

What is the output of line 02?
Question 143
A developer wants to use a try...catch statement to catch any error that countSheep () may throw and pass it to a handleError () function.
What is the correct implementation of the try...catch?
A)

B)

C)

D)

What is the correct implementation of the try...catch?
A)

B)

C)

D)

Question 144
Given the following code:
Let x = ('15' +10) +2;
What is the value of x?
Let x = ('15' +10) +2;
What is the value of x?
Question 145
Refer to the code below:
Const pi w 3.1415926;
What is the data type of pi?
Const pi w 3.1415926;
What is the data type of pi?
