mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-13 07:28:03 -05:00
12 lines
158 B
TypeScript
12 lines
158 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;
|
|
}
|