Validateur de Syntaxe JavaScript
Valide les erreurs de syntaxe JavaScript.
Syntax is checked by compiling in your browser. The code is never executed and never sent anywhere.
Overview
This tool answers one question fast: will this JavaScript parse? Your code
is handed to the browser’s own engine via the Function constructor, which
compiles it without ever running it. That means the verdict comes from a
real production parser — the same one that will execute your script — not a
reimplementation, and side effects are impossible because the compiled
function is never invoked.
How to use
- Paste code into the JavaScript field — checking runs on every keystroke.
- Read the status line: No syntax errors on success, or the engine’s error such as
SyntaxError: Unexpected token '}'on failure.
Examples
const x = () => { return 1 }→No syntax errorsif (a { console.log(a) }→SyntaxError: Unexpected token '{'function f( {→SyntaxError: Unexpected end of input
Notes
The code is compiled in your browser and never executed or sent anywhere.
Because it is parsed as a function body rather than a module,
import/export statements and top-level await are reported as errors
even if the file is a valid ES module. This is a syntax check only — it
will not catch runtime errors, undefined variables, or logic bugs; use a
linter such as ESLint for deeper analysis.