JavaScript
"Hi there!",
function(){
alert("This is pretty useful!");
return true; // Will make the engine execute the next statement when the function finishes.
},
"Isn't it?"function sendAlert(){
alert("This is pretty useful!");
return true;
}
var script = {
// The game starts here.
"Start": [
"Hello, after this the function will be run.",
sendAlert, // You can use just the name of the function!
"Well, that looks a lot better!"
]
}Async Functions
Reversible Functions
Last updated
Was this helpful?