mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
12 lines
157 B
TypeScript
12 lines
157 B
TypeScript
// test_output! [1,4,9]
|
|
|
|
export default function () {
|
|
let vals: number[] = [];
|
|
|
|
for (const x of [1, 2, 3]) {
|
|
vals.push(x * x);
|
|
}
|
|
|
|
return vals;
|
|
}
|