-
Notifications
You must be signed in to change notification settings - Fork 24
Using the REPL
Rohan Singh edited this page Aug 23, 2014
·
5 revisions
The Mond REPL (read-eval-print-loop) allows you to quickly test scripts by writing them line-by-line into a console.
There are a few important things to know when using the REPL:
- Semicolons are still required (might change in the future)
- You can display values by returning them
- You can prefix lines with
=
to return a value - All declarations in the root scope will be put into the global object
- Undefined variables will resolve to values in the global object