Syntax errors can be caught in JavaScript? -


mdn states:

a syntaxerror thrown when javascript engine encounters tokens or token order not conform syntax of language when parsing code.

but if there's syntax error, how program run in first place?

how can javascript syntax errors caught?

it's runtime errors can caught try-catch, not syntax errors (if eval code can handle syntax errors in evaled code that's weird).

i'd recommend read these:


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -