return 42; // should be inside a function function f() { 'use strict'; var x = 042; with (z) {} }
Unlike a typical code linter, this syntax validator does not care about coding styles and formatting.
If there is a syntax error, place the mouse cursor over the squiggly red line to reveal the detailed error description.