📜  你如何交换变量 js - Javascript 代码示例

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

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

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