rhai/scripts/function_decl1.rhai
2021-04-09 22:48:47 +08:00

10 lines
136 B
Plaintext

// This script defines a function and calls it
fn bob() {
return 3;
}
let result = bob();
print(`bob() should be 3: ${result}`);