使用临时变量
JavaScript
Enter the first variable: 4 Enter the second variable: 2 The value of a after swapping: 2 The value of b after swapping: 4
使用 es6(ES2015) 解构赋值
JavaScript
Enter the first variable: 4 Enter the second variable: 2 The value of a after swapping: 2 The value of b after swapping: 4
We have been online since 2021 and 1 millions of people around the globe have visited our website since then
More visitors every month