COMPLETE THE CODE
Your first connection
- Draw paths between matching letters and colours along the grid. Paths cannot overlap or cross. Tap an endpoint and its match for an automatic route, or tap neighbouring cells to draw one step at a time. Tap an endpoint to redraw its wire.
- Click the code screen to edit. Finish the task shown above.
- Run animates your program. Step executes one traced instruction at a time.
Use print(value);, let name = value;, input(), Number(), if / else, for, and while. Each input() reads the next input line. Use semicolons, braces, and quotes as shown in the lessons. This teaching language uses exact comparisons for both == and ===.
Three hints get more specific as you need them. Progress is saved in this browser. Programs are limited to 6,000 operations, 800 trace steps, and 150 printed lines.
click the screen to editJS / learning mode
N3 · INPUT TERMINAL
WIRE PUZZLE 0 / 2
● CONNECT CABLES ●
match colours · no crossing
draw a path or tap a pair
TARGET OUTPUT
MEMORY
waiting for a signal…
READY0 steps
N3 · OUTPUT TERMINAL
✦ Connect the cables. Your first program is waiting.
Connect the matching sockets to power the screens.