Family Day update
This commit is contained in:
parent
aac6731f2c
commit
9ad63ea473
2442 changed files with 39761 additions and 8255 deletions
8
Task/Generic-swap/JavaScript/generic-swap-3.js
Normal file
8
Task/Generic-swap/JavaScript/generic-swap-3.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
function swap(a, b) {
|
||||
var tmp = window[a];
|
||||
window[a] = window[b];
|
||||
window[b] = tmp;
|
||||
}
|
||||
var x = 1;
|
||||
var y = 2;
|
||||
swap('x', 'y');
|
||||
Loading…
Add table
Add a link
Reference in a new issue