+ 2
How to interchange two values using only two variables in HTML?
2 Respostas
+ 8
html?
i think you mean js
var a=5;
var b=6;
a=a+b;
b=a-b;
a=a-b;
or...using es6
[a,b]=[b,a];
also...it can be done with bitwise operators ^
+ 1
right js sry
anyway tx a lot