Aa

Text size

?

Map / Loops / Check 2

⌨️ Write

Check: count the digits

Write countDigits so it returns how many characters of the text are digits 0–9.

  • for
  • charAt(i)
  • &&