fullsquatjs
js
json
md
Run
⌘K
scratch.js
// FullSquat JS — write, see values instantly. // Top-level values report themselves. No console.log needed. const xs = [1, 2, 3, 4, 5]; xs.map(x => x ** 2); // Add //? to report any expression, anywhere. const users = [ { name: 'ada', role: 'admin' }, { name: 'linus', role: 'dev' }, ]; users //? $.map(u => u.name) // npm packages resolve straight from esm.sh. // import { nanoid } from 'nanoid'; // nanoid(); class Point { constructor(x, y) { this.x = x; this.y = y; } get length() { return Math.hypot(this.x, this.y); } } new Point(3, 4).length;
results
Results appear here as you type.
No matching command
Settings
Language
Auto
English
Español
Editor font size
Reset