Is Javascript is synchronous or asynchronous 2024?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at the University of Edinburgh, Lives in Edinburgh, Scotland.
JavaScript is always synchronous and single-threaded. If you're executing a JavaScript block of code on a page then no other JavaScript on that page will currently be executed. JavaScript is only asynchronous in the sense that it can make, for example, Ajax calls.
2023-05-15 04:45:25
评论(499)
Helpful(122)
Helpful
Helpful(2)

Ethan Harris
QuesHub.com delivers expert answers and knowledge to you.
JavaScript is always synchronous and single-threaded. If you're executing a JavaScript block of code on a page then no other JavaScript on that page will currently be executed. JavaScript is only asynchronous in the sense that it can make, for example, Ajax calls.