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