mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
12 lines
149 B
TypeScript
12 lines
149 B
TypeScript
//@target: ES5
|
|
|
|
var array = [1,2,3];
|
|
var sum = 0;
|
|
|
|
for (let num of array) {
|
|
if (sum === 0) {
|
|
array = [4,5,6]
|
|
}
|
|
|
|
sum += num;
|
|
} |