DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
swap two numbers without temp in javascript
let a = 5, b = 6; [a, b] = [b, a]; // Destructuring Assignment Array Matching
PREVIOUS
NEXT
Tagged:
#swap
#numbers
#temp
#javascript
ADD COMMENT
Topic
COMMENT
Name
2+5 =
Submit