Foundations

Fix the Average

Fix the Average

MediumFoundationsPRO

Debug a JavaScript operator precedence bug in an average calculation. This medium exercise reinforces grouping arithmetic before division so a nearly-correct expression produces the intended score.

What you'll practice

  • Debug a JavaScript operator precedence bug in an average calculation
  • Grouping arithmetic before division so a nearly-correct expression produces the intended score

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.