Running Javascript Snippets in VSCode Quokka.js

Ole Ersoy
1 min readJul 2, 2020

--

Image by Pexels from Pixabay

Scenario

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

Approach

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

--

--

Ole Ersoy
Ole Ersoy

Written by Ole Ersoy

Founder of Firefly Semantics Corporation

No responses yet