📜  交换两个变量 javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:45.103000             🧑  作者: Mango

代码示例2
let a = "red";
let b = "blue";
let c = a; // red
a = b; //over-rides to blue
b = c;

console.log(a);
console.log(b);