JavaScript: The Ghost in the Machine
10 Modules
- Mission 0: System Command Language
- Mission 1: Drone Activation
- Mission 2: The Debris Field
- Mission 3: Building the Command Library
- Mission 4: Planetary Survey
- Mission 5: The Drone Factory
- Mission 6: Interstellar Relay
- Mission 7: The Interactive Star Map
- Mission 8: Codebase Refactor
- Mission 9: Rebooting the Command Core
Mission 3: Building the Command Library
Package the drone's scanning capability into a named, reusable function.
00:00
Mission Objective
Declare a function named `activateScanner` that logs "Scanner activated." to the console. Then, call the function.
Step 1 / 4
System Briefing: Reusable Subroutines
Writing code line-by-line is inefficient. You need to create a library of reusable subroutines (functions) for the drone to execute on command.