29 lines
504 B
TypeScript
29 lines
504 B
TypeScript
|
function f1() {
|
||
|
for (let [x, y] = [1, 2]; x < y; ++x, --y) {
|
||
|
let a = () => x++ + y++;
|
||
|
if (x == 1)
|
||
|
break;
|
||
|
else if (y == 2)
|
||
|
y = 5;
|
||
|
else
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function f2() {
|
||
|
for (let [{a: x, b: {c: y}}] = [{a: 1, b: {c: 2}}]; x < y; ++x, --y) {
|
||
|
let a = () => x++ + y++;
|
||
|
if (x == 1)
|
||
|
break;
|
||
|
else if (y == 2)
|
||
|
y = 5;
|
||
|
else
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|