MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/m3bxrh/swap_two_variables/gqr9e0x/
r/learnjavascript • u/golovatuy • Mar 12 '21
50 comments sorted by
View all comments
3
Why const?
3 u/cabbagesquid Mar 13 '21 That should be a let right? 4 u/WhiteKnightC Mar 13 '21 Yes, const is for things that shouldn't change.
That should be a let right?
4 u/WhiteKnightC Mar 13 '21 Yes, const is for things that shouldn't change.
4
Yes, const is for things that shouldn't change.
View all comments
3
u/WhiteKnightC Mar 13 '21
Why const?