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 6: Interstellar Relay
First, you must interface with a legacy system at a deep-space relay. It uses an older 'callback' protocol to handle responses.
00:00
Mission Objective
Call the provided `sendLegacyRequest` function. It takes one argument: a callback function. Your callback function should accept one parameter, `response`, and log it to the console.
Step 1 / 3
System Briefing: Handling Time Delays
Your drones are now operating across star systems. Sending a command and getting a response involves significant light-speed delay. You must write asynchronous code that does not "block" or freeze the main system while waiting for a response. We'll explore three eras of this protocol.