Exam JavaScript-Developer-I Topic 5 Question 33 Discussion
Actual exam question for Salesforce's JavaScript-Developer-I exam
Question #: 33
Topic #: 5
Question #: 33
Topic #: 5
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?
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?
Suggested Answer: B Vote an answer
by Lilith at Mar 18, 2024, 10:57 AM
0
0
0
10
Comments
donmads
2026-03-28 03:35:1220521687
2025-03-13 19:03:40Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).