JavaScript Validator
Check whether JavaScript is syntactically valid, and see the line and column of the first mistake.
The result appears as you type.
This tool runs in your browser. Nothing you enter is sent anywhere.
This checks syntax only: the code is parsed but never run, so it cannot find runtime errors such as calling something that is undefined. Both classic scripts and ES modules (import and export) are accepted.