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

Exercise prompt

Invert a Boolean

The logical NOT operator ! changes true to false and false to true.

Example

const isOnline = false; const isOffline = !isOnline;

isOffline is true.

Your task

The shop is not open, but the starter incorrectly reports Closed: false. Repair isClosed so it displays Closed: true.