Code Scramble

The lines of a short, working program got shuffled. Tap them back into order. Building with AI means reading far more code than you type, and this is quick practice at seeing how a program fits together.

Each round is 6 puzzles from a set of 28 in JavaScript, React, HTML, CSS, Python, SQL, Terminal. Lines keep their indentation as a clue. Right first time: 2 points. Right after another try: 1 point. Score 9 of 12 to earn the Code Untangler badge, saved on this device.

Puzzle 1 of 6 · Terminal · Score 0

Add a package and share it

Add the zod package, then commit it so your teammates and your host get it too.

Your program (0 of 4 lines; tap a line to send it back)

Tap lines in the pile to build the program here, from the top.

Line pile (tap the line that comes next)