- Instant execution of Javascript code.
- Copy javascritp code using a button.
- Copy link using a button.
- Share your code made using the page link.
- Import code with the link from the page.
Clone the repository:
git clone git@github.com:luis-keny/playrunjs.git
cd playrunjs Install dependencies:
npm install Start the app:
npm run dev - Write code in the editor.
- Results will appear in the console on the right.
Example:
// Calculate Fibonacci
function fibonacci(n) {
return n <= 1 ? n : fibonacci(n - 1) + fibonacci(n - 2);
}
console.log(fibonacci(10)); // 55