Demos
Small Node programs to open in Turbo JS once you have built it. Each directory is a project of its own: start the editor in it, so the JavaScript menu's commands run there and the language server finds its package.json.
| Directory | What it shows |
|---|---|
greeter/ |
A class with a private field and a regular expression, an ES module importing it, and a node --test file beside them. npm start greets three times; npm test runs the two tests. |
cd demos/greeter
turbo-js main.js
Then Alt-J ▸ Create tools file, and the menu runs npm install, node --test and npm start from here.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|