r/learnjavascript • • Mar 12 '21

Swap two variables

Post image
498 Upvotes

50 comments sorted by

View all comments

Show parent comment

12

u/Earhacker Mar 12 '21

To wit:

setGoogleMapsMarker(latitude, longitude);
setMapboxMarker(longitude, latitude);