B4Coder

🏛️ College Admission (Form Logic) · Mission 2 of 6

🎂 Old Enough?

The college takes students from 17 to 25. Anyone outside that should be told, kindly.

Your mission

  1. If form.age < 17 || form.age > 25: ok = false, message = "Age must be between 17 and 25."
  2. Otherwise: ok = true, message = "Welcome, " + form.name + "!"

Getting the mission ready…