Language

JavaScript

First appeared
1995
Paradigm
Multi-paradigm (imperative, functional, prototype-based object-oriented)
Toolchain
Node.js 26.13.0
Container image
node:26.13.0-trixie-slim

JavaScript was made for web browsers, and Node.js runs it on servers and the command line. Its standard library has no numeric or data tools, so data science in JavaScript usually means packages from npm. npm is removed from this image, so none can be installed, and the work falls to array methods like map, filter, and reduce, plus the Math object.

Each file here is an ES module that imports readFileSync from node:fs. Node treats a .js file that uses import as a module even with no package.json beside it, so no flag is needed.

Quirks

Concepts in JavaScript

Run the examples locally

You need Docker and Python 3. The harness builds the pinned container and runs every JavaScript example:

git clone https://github.com/qnixon/dswithx.git
cd dswithx
python3 harness/run_tests.py --language javascript