Coding task · JavaScript and TypeScript course · Module 1: JavaScript Basics
Practice: Fence System
Program a fence monitoring system for Jurassic Park. Use conditional statements (if/else) to check the safety status of each enclosure.
Task
Store the voltage of two fences: const voltageTRex = 10000 and const voltageRaptor = 3000. For each fence use if/else: if the voltage is greater than 8000, display 'ACTIVE' in the console, otherwise 'ALARM'.