Coding task · JavaScript and TypeScript course · Module 1: JavaScript Basics
Practice: Comments and Formatting
Comments do not change what the program does. A multi-line comment starts with /* and ends with */, a single-line comment starts with //.
Task
Write a monitoring system program that displays three messages in the console, e.g. 'Fences: OK', 'Cameras: OK' and 'Power: 98%'. Put each console.log() on its own line and end it with a semicolon. At the top add a multi-line comment describing the program, and above each console.log() a single-line comment explaining it.