You’ve now converted text into numbers, compared values against a limit, and formatted numbers only in the line that shows them. In this short activity, you’ll put all three into one script that you own: a report of a walk, hike, or ride you’ve taken.
The report needs no new tools. It shows the steps working together in a file you can change and rerun.
Run a Sample Journey Report
Picture a day hike tracked by a step counter app. You copied its summary into your script, so the values arrive as text, just like the gear weights in Turn Numeric Text Into Numbers. You also set yourself a goal of walking 12 kilometers.
If the Node REPL is still running from the last lesson, leave it with .exit. Then create a file named journey.js in your scratch/ folder: