Running Javascript Snippets in VSCode Quokka.js


We want to quickly find out what the result of Math.pow(2,5) is.


Install the VSCode extension Quokka community edition (Click on extensions and search for Quokka):

Once install type CTRL + SHIFT + P or if on a Mac COMMAND + SHIFT + P .

Select Quokka.JS: New File > Typescript . Then type this:

const M = Math.pow(2,5)console.log(M)

And Quokka will tell you what the result is next to the log statement. Here’s a screenshot:

It will also give you real time informative errors in the console.

Brought to You By Firefly Semantics



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ole Ersoy

Ole Ersoy

Founder of Firefly Semantics Corporation