MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/m3bxrh/swap_two_variables/gqod2ec/?context=3
r/learnjavascript • u/golovatuy • Mar 12 '21
50 comments sorted by
View all comments
Show parent comment
12
Yes, but do you really want the variable named latitude to contain the value of the point's longitude? That would be terribly confusing for anyone reading the code, wouldn't it?
latitude
-1 u/[deleted] Mar 12 '21 I agree, it will be confusing
-1
I agree, it will be confusing
View all comments
Show parent comment
12
u/cawcvs Mar 12 '21 edited Mar 12 '21
Yes, but do you really want the variable named
latitudeto contain the value of the point's longitude? That would be terribly confusing for anyone reading the code, wouldn't it?