mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-14 07:57:57 -05: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;
|
|
}
|