Mission 1: Drone Activation

First, send a signal to the drone's console to confirm your script is running.

00:00

Step 1 / 3

System Briefing: Boot Sequence

A diagnostic drone, callsign "Spark-1," is inert on its charging pad. You need to establish a connection and run a basic systems check by writing your very first lines of JavaScript. This involves sending signals via the console, declaring variables to hold its status, and using operators to perform calculations.

Variable Declaration Protocols

Understanding how to declare variables is the most fundamental protocol. The choice of keyword has significant implications for scope and mutability.

Keyword Scope Hoisting Re-assignment
var Function-scoped Yes (as undefined) Allowed
let Block-scoped ({}) No (TDZ) Allowed
const Block-scoped ({}) No (TDZ) Not Allowed

Editor