2 ms·
Type `square(10)` on the last line. Notice it doesn't give you the correct value. Fix the square function to correctly return `n*n`. Everything updates instan
by SamBam 6y ago
Type `square(10)` on the last line.
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.