B4Coder

🏏 Cricket Scoreboard · Mission 6 of 8

🎯 Extras

A wide! A no ball! The batting team gets a run, but no batter scored it and it isn't a ball faced. The app keeps extras for you, ball to ball.

Your mission

  1. Wide or no ball (ball.kind == "wide" or "noball"): extras = extras + 1. Nobody's runs or balls change.
  2. message = "Wide" or "No ball".
  3. The total is now the batters' runs plus extras.

Getting the mission ready…