SOURCE
JavaScript
Result
const swap = function (a, b) { a = a ^ b b = a ^ b a = a ^ b console.log(a, b) } swap(1,2)
console 命令行工具
X
clear
>
console