4 fast ways to run JavaScript

4 fast ways to run JavaScript

4 fast ways to run JavaScript

I like to learn new things.

When I experiment, I need a fast way to run a code snippet, do some debugging and figure out what is working and what is not.

Depending on the situation and mood 🌅 I switch between these setups:


Most of the time I will write the code in my code_notes repository.

I have the simplest VSCode configuration possible:

  "type": "node",
  "request": "launch",
  "name": "single file",
  "program": "${file}"

With this config, VSCode will run currently opened file in the debugger.

Just hit F5 and look for the output in DEBUG CONSOLE.

Of course, you will have all the debugging goodies - read more here

VSCode + Quokka.js

To have ‘live reload’ for code evaluation check out Quokka.js

Quokka.js is a rapid prototyping playground for JavaScript and TypeScript. It runs your code immediately as you type and displays various execution results in your code editor. I use it when I am just starting out with an idea.

It really helps to understand what effect has each line of the code.

Chrome Snippets

Sometimes the quickest way to run JavaScript is in Chrome directly.

Just open Developer Tools, switch to Sources tab and create a new code snippet. Snippets might be hidden under the >> icon.

Remember to wrap the code in {} to have a new local scope on each run.

Python Tutor

Don’t be fooled by the name! It can run JavaScript also. And it even has a live mode too.

The cool thing about this tool is that it visualizes what is happening at each step.

It’s great for educational purposes.


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

JavaScript Tutorial: if-else Statement in JavaScript

This JavaScript tutorial is a step by step guide on JavaScript If Else Statements. Learn how to use If Else in javascript and also JavaScript If Else Statements. if-else Statement in JavaScript. JavaScript's conditional statements: if; if-else; nested-if; if-else-if. These statements allow you to control the flow of your program's execution based upon conditions known only during run time.

How to Retrieve full Profile of LinkedIn User using Javascript

I am trying to retrieve the full profile (especially job history and educational qualifications) of a linkedin user via the Javascript (Fetch LinkedIn Data Using JavaScript)

Java vs. JavaScript: Know The Difference

Java vs. JavaScript: Know the Difference, Java vs. JavaScript: What's the Difference? Java vs. JavaScript: Major Similarities and Differences. pros and cons of JavaScript and Java.