Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Javascript swap

var first = 5;
var second = 7;

var third = first;
var first = second;

console.log(first)
console.log(third)
//Output: 7,5
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Javascript #swap
ADD COMMENT
Topic
Name
9+7 =