Skip to main content

Preview build: sign-in and grading run on the server. MFA is not enabled, and storage is in server memory so it does not survive a restart.

LearnDefend
Browser LabLD-SCRIPT-LAB-001Easy
Browser LabLD-SCRIPT-LAB-001Easy20 min

Trace the Loop, Find the Bug

Orbit has a short script meant to sum a list of daily sales, but it prints the wrong total. Read the code as the interpreter would — line by line, tracking state — predict what it actually prints, identify the bug, and give the fix and the corrected result. Reason from the code, not from what it was 'supposed' to do.

What you will be able to do

  • Trace a script line by line, tracking variable state.
  • Identify a loop/accumulator bug from the code.
  • State the fix and predict the corrected output.
Log Analysis

Sign in to start this lab.

Sign in