Coding task · JavaScript and TypeScript course · Module 1: JavaScript Basics

Practice: Loops

Create a system for checking the integrity of enclosure fences. The program should iterate through all enclosures and check their status.

Task

Store the names of at least three enclosures in an array called enclosures. Use a loop to display a message with the name of each enclosure in the console, e.g. 'Checking: T-Rex paddock'.