
JavaScript — Hello World
The classic hello-world in modern JavaScript — a minimal function calling console.log, for testing highlighters, Node, and JS parsers.
- File
- JS · JavaScript
- Use case
- Syntax highlightingCode parsing+1
Search files, editable visual templates, and live browser targets from one registry-backed directory. Filtered query views stay crawlable for links but are deliberately noindex; the stable taxonomy pages below remain the canonical search surfaces.
Page 3 of 6; 24 results per page.

The classic hello-world in modern JavaScript — a minimal function calling console.log, for testing highlighters, Node, and JS parsers.

Intentionally corrupt JavaScript object literal — labelled invalid for error handling. Labelled intentionally invalid in title and description.

A realistic JavaScript snippet with an ES class, private #fields, arrow functions, template literals, a getter, and async/await — for testing highlighters, ESLint, Prettier, and bundlers.

Intentionally lint-bait SAMPLE javascript snippet (eqeqeq-invalid) for rule-engine tests.

Intentionally lint-bait SAMPLE javascript snippet (var-shadow-invalid) for rule-engine tests.

Intentionally invalid JSON (unquoted key + trailing) for strict parser failure tests. Labelled intentionally invalid in title and description.

Intentionally invalid Julia (unclosed function) for linter error-path tests.

Julia broadcast operators (.^ .+ ) for highlighter and parser edge cases.

Julia typed Fibonacci with a for-loop — realistic snippet for language tooling.

Minimal Julia hello-world for syntax highlighters and Julia LSP smoke tests.

Julia Macro SAMPLE for Wave G language-tooling coverage.

The classic hello-world in Kotlin — a top-level main function — for testing highlighters, the Kotlin compiler, and parsers.

A realistic Kotlin snippet with data classes, an enum, a sealed result interface, extension functions, and when expressions — for testing highlighters, the Kotlin compiler, ktlint, and parsers.

Kotlin data class SAMPLE for Kotlin language-server tests.

Intentionally invalid Lua table for error handling.

Tiny Lua coroutine yield loop for language tooling.

Minimal Lua hello for embedder and syntax-highlight tests.

Lua Metatable SAMPLE for Wave G language-tooling coverage.

Lua table with method colon syntax for parsers.

Intentionally invalid Nim for nim check error paths.

Minimal Nim hello for nimlsp / highlighter tests.

Nim object type plus proc — for Nim AST tooling.

Nim recursive fib proc — realistic snippet.

Nim Template SAMPLE for Wave G language-tooling coverage.
We use Google Analytics and show ads via Adsterra. Non-essential cookies and ad scripts run only after you allow the matching categories. See our cookie policy.