Dataslope logoDataslope · Learn

JavaScript

JavaScript runs natively in the browser. Top-level await is supported.

JavaScript runs directly in your browser — no WebAssembly runtime to download. Each block is evaluated inside its own AsyncFunction scope, so let/const declarations don't leak across blocks.

Hello, world

JsBlock-2bafJavaScript ES2023+

Top-level await

User code is wrapped in an async function, so you can await promises directly at the top level.

JsBlock-85e9JavaScript ES2023+

Working with arrays

JsBlock-a4b0JavaScript ES2023+

On this page