Notifications
Clear all

Which option allows the developer to step into each function execution within calculateBill?

1 Posts
1 Users
0 Likes
94 Views
(@sextoncletus)
Posts: 695
Noble Member
Topic starter
 

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?

  • A . Using the debugger command on line 05.
    B. Using the debugger command on line 03
    C. Calling the console.trace (total) method on line 03.
    D. Wrapping findSubtotal in a console.log() method.

Show Answer Hide Answer

Suggested Answer: A
 
Posted : 03/02/2023 11:56 pm

Latest Salesforce JavaScript Developer I Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: