Browser LabLD-SCRIPT-LAB-002Medium
Browser LabLD-SCRIPT-LAB-002Medium22 min
Why the Total Came Out Wrong
Orbit reads amounts from a data file and sums them, but the result is nonsense. Read the data and the code together, work out what type the values really are, predict the buggy output, and give the fix. This is the everyday reality of parsing real files.
What you will be able to do
- Recognize that data read from a file is text.
- Predict a string-concatenation-vs-addition bug.
- State the type-conversion fix and corrected result.
Log AnalysisAnalyst Reporting
Sign in to start this lab.
Sign in