0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Access Check

A check-in screen must decide whether a learner may enter.

Your task

A learner can enter when they are at least 16, have a pass, and are not banned. Use the supplied values to produce exactly:

Old enough: true Can enter: true

Create oldEnough first, then use it with hasPass and isBanned to create canEnter. Display both results.

Hint

Work out each entry requirement separately before combining them.