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

10 lines
150 B
JavaScript

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