Skip to main content

Practice · 1 of 5

Compose from helpers

CHALLENGE
Difficulty: intermediate+25 XP

Complete hasDigit (true when s contains at least one digit) and valid (length >= 8 AND (hasDigit OR startsUpper)). The helpers do the scanning; valid is one boolean expression.

Back to lesson: Practice: Specification workshop