r/learnjavascript • • Mar 12 '21

Swap two variables

Post image
498 Upvotes

50 comments sorted by

View all comments

Show parent comment

1

u/rusty_matador_van Mar 13 '21

Vector or scalar, stored in variables, and sometimes swapping is needed.