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 7: The Interactive Star Map
First, you need to establish a connection to the UI components you want to control.
00:00
Mission Objective
Use `document.querySelector()` to get the star map element with the ID `#starmap` and the sidebar element with the ID `#sidebar`. Store them in constants named `starMap` and `sidebar` respectively.
Step 1 / 3
System Briefing: The Living Interface
The main star map displays star systems, but all interactive features are offline. You need to manipulate the DOM (Document Object Model)—the tree-like structure of the HTML document—to restore functionality.