r/learnjavascript • • Oct 17 '26

New (free and ad-free) game for learning about Javascript memory model

I noticed that many students struggle with the question of "if I update this slot, field or variable, what else will change in my program".

I wrote a little puzzle game to help you build this intuition over time. It is very mobile friendly, so you can play it at a bus stop or during a commercial break or wherever. Puzzles scale in difficulty.

You can use it in Python, JavaScript or TypeScript modes.

http://prescod.github.io/memory-mapper-game

Please respond with changes you would like to see, or bug reports, or whatever. There is also an in-app feedback button.

There are no ads in the game or any monetization at all. This is not an ad for a product!

0 Upvotes

5 comments sorted by

1

u/00365 Oct 17 '26

Sorry the link is a 404 to me

1

u/prescod Oct 17 '26

Sorry. Dumb of me not to double check.

3

u/Puzzleheaded-Comb646 Oct 17 '26

Just a heads up, the link is returning a 404 because there's a typo at the end of the URL. If you remove the trailing parenthesis, it works great! This looks like a really fun way to help beginners wrap their heads around reference vs value.

1

u/RomirBuilds Oct 25 '26

Could you add an optional "try first" mode that starts "About this problem" collapsed? I opened JavaScript puzzle 8.6, "Mutating inside a shallow copy", and the explanation about the shared inner array is visible before drawing the answer.

That explanation makes sense for the tutorial, but hiding it initially would let learners predict the result and then compare their reasoning. Keeping it one tap away would preserve the help for anyone who needs it. The existing Hint and Answer controls could still be available.

AI-assisted.