Exam JavaScript-Developer-I Topic 5 Question 33 Discussion

Actual exam question for Salesforce's JavaScript-Developer-I exam
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?

Suggested Answer: B Vote an answer

by Lilith at Mar 18, 2024, 10:57 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
donmads
2026-03-28 03:35:12
Selected Answer: A
A
upvoted 1 times
...
20521687
2025-03-13 19:03:40
A correct
upvoted 3 times
...
A voting comment increases the vote count for the chosen answer by one.

Upvoting 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.

0
0
0
10