Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js try..catch works synchronously.

Your question is confusingly worded.

The entire Javascript language is fully synchronous; all language constructs, including catch and finally blocks, will execute synchronously before running the next line of code.

However, they are not aware of any asynchronous operations that may have begun, and will not wait for them to finish.
 
PREVIOUS NEXT
Tagged: #js #works
ADD COMMENT
Topic
Name
4+8 =