rhai/scripts/while.rhai
2022-01-20 12:06:36 +08:00

9 lines
90 B
JavaScript

// This script runs a while loop.
let x = 10;
while x > 0 {
print(x);
x -= 1;
}