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 2: The Debris Field
The drone must be able to react to its environment. Its forward sensor will report if there is an obstacle.
00:00
Mission Objective
Given `let obstacleDetected = true;`, write an `if...else` statement. If `obstacleDetected` is true, log "Turning left". Otherwise, log "Moving forward".
Step 1 / 3
System Briefing: Logic and Resilience
Spark-1 is active, but it's 'dumb.' You need to give it logic to make decisions and handle unexpected problems as it navigates its first test environment, a simulated debris field.