RosettaCodeData/Task/Runtime-evaluation/Sparkling/runtime-evaluation-3.sparkling

3 lines
101 B
Plaintext

let fn = compile("for (var i = 0; i < 10; i++) { print(i); }");
fn(); // result: 0 1 2 3 4 5 6 7 8 9