mirror of
https://github.com/remko/waforth
synced 2024-12-27 09:59:29 +01:00
Documentation
This commit is contained in:
parent
c8b976b99c
commit
f252014644
1 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* Simple example to show how to embed WAForth in JavaScript, and call JavaScript
|
||||
* from within Forth code.
|
||||
*/
|
||||
|
||||
import "./prompt.css";
|
||||
import WAForth from "../../WAForth";
|
||||
|
||||
|
@ -33,6 +38,7 @@ import WAForth from "../../WAForth";
|
|||
;
|
||||
`);
|
||||
|
||||
// Ask for a number (via Forth) when the user clicks the button
|
||||
btn.addEventListener("click", () => {
|
||||
forth.interpret("ASK-NUMBER");
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue