Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how do you swap the vaRIables js

let a = "red";
let b = "blue";
let c = a; // red
a = b; //over-rides to blue
b = c;

console.log(a);
console.log(b);
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #swap #vaRIables #js
ADD COMMENT
Topic
Name
8+7 =