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 dmitripavlutin.com #
 
PREVIOUS NEXT
Tagged: #swap #vaRIables #js
ADD COMMENT
Topic
Name
6+8 =