DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
swap function javascript
let a = 1; let b = 2; let temp; temp = a;a = b;b = temp; a; // => 2 b; // => 1
Source by dmitripavlutin.com #
PREVIOUS
NEXT
Tagged:
#swap
#function
#javascript
ADD COMMENT
Topic
COMMENT
Name
4+9 =
Submit