Foundations

Return, Don't Log

Return, Don't Log

MediumFoundationsPRO

Debug a JavaScript function that logs a calculated value but must return the number so later code can store and reuse it. This medium exercise separates human console output from program values that later code can reuse.

What you'll practice

  • Debug a JavaScript function that logs a calculated value but must return the number so later code can store and reuse it
  • Separates human console output from program values that later code can reuse

Unlock full access

Choose a plan and go straight to secure checkout.

  • All 600+ interactive exercises
  • Full course curriculum
  • Access to guided projects
  • All future content included

Secure checkout with Stripe. Cancel anytime.