Menu

1 / 2

Line-anchored output and the filter chips

DEV Community: typescript·JSLab·about 1 month ago
#yqpqgPHK
#devtotypescript#devto#dev#line#output
Long article (446 words) — no AI summary yet.
Reading 0:00
15s threshold

JSLab feature notes: one docs page, explained. Today: The output panel .

JSLab is a JavaScript & TypeScript scratchpad for macOS. You type, it runs, and the output panel fills up. This note covers the two things that make that panel readable: every row knows its line, and four chips filter what you see.

Every row knows its line

Each result, log and error appears as a row tagged with the line that produced it. The link works both ways:

Hover a row and its line lights up in the editor.

Put the caret on a line and its rows light up in the output.

Click a row's line number and the caret jumps there.

Try it with the example from the docs:

const width = 12 ; const height = 5 ; width * height ; width + height ; Math . hypot ( width , height );

Enter fullscreen mode

Exit fullscreen mode

Three rows: 60 , 17 and 13 , each tagged with its line. In a five-line file that's a nicety.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.