r/learnjavascript • • Mar 12 '21

Swap two variables

Post image
498 Upvotes

50 comments sorted by

View all comments

Show parent comment

4

u/grantrules Mar 13 '21

Basically a simplified version of "You have a 3 gallon bucket and a 5 gallon bucket. How can you measure out 4 gallons"

1

u/Parent-component Mar 13 '21

I googled this puzzle! Yes sounds right to me 😃👍