rhai/scripts/while.rhai
2022-07-24 23:03:35 +08:00

9 lines
91 B
JavaScript

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