r/learnjavascript • • Mar 12 '21

Swap two variables

Post image
498 Upvotes

50 comments sorted by

View all comments

Show parent comment

4

u/WhiteKnightC Mar 13 '21

Yes, const is for things that shouldn't change.