Kangax blog has a code example: §
try {
(var x = 5); // grouping operator can only contain expression, not a statement (which `var` is)
} catch(err) {
// SyntaxError
}
Since the syntax error at line 2 would affect the "syntax of the entire code", what's the point of the catch statement here?
Is catch able to catch syntax errors in JavaScript?