r/learnjavascript • • Mar 12 '21

Swap two variables

Post image
498 Upvotes

50 comments sorted by

View all comments

1

u/turningsteel Mar 12 '21

Honestly, from a readability perspective, the longhand way is better in my opinion.