DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
swap two variables javascript
var a = 1, b = 2; b = [a, a = b][0];
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#swap
#variables
#javascript
ADD COMMENT
Topic
COMMENT
Name
3+2 =
Submit