This is an interactive coding environment for JavaScript and Typescript, similar to Jupyter Notebook. There are two types of cells
You can click on either of the two following buttons to create a cell.
You don't need to install third-party libraries locally to use them in this app. It will detect your import
statement and try to fetch their source code from unpkg.com
. For example, even if the react library is not installed, the following code will work
You can also have a mix usage of JavaScript and TypeScript by toggling the language mode on the top left corner.
When you run javascript-notebook from the terminal, a notebook.js file is created under the root directory to save your progress every 1 minute. You can reopen the notebook via npx javascript-notebook serve notebook.js