The only suggestion I have would be to make the right textarea non-editable, although I don't know how to do so while keeping selectability
Very cool, bookmarked.
FYI If I highlight everything and delete, the right-hand side 'answers' remain there, with no text to the left
Notice it doesn't give you the correct value.
Fix the square function to correctly return `n*n`. Everything updates instantly.
There's your answer. It's actually really neat to code that way, especially with a long chain of logic.