Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

switch variables javascript

let a = 5, b = 6;
[a, b] = [b, a];
console.log(`${a} ${b}`);
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #switch #variables #javascript
ADD COMMENT
Topic
Name
9+4 =