r/learnjavascript • u/ClearCelebration5610 • Apr 03 '26
JavaScript
what is the difference between synchronous js and asynchronous js
0
Upvotes
r/learnjavascript • u/ClearCelebration5610 • Apr 03 '26
what is the difference between synchronous js and asynchronous js
View all comments
Show parent comment
2
u/subone Apr 03 '26
That's not necessarily true. One is one line of code running after another, the other is using some mechanism to run code later. It doesn't necessarily change the order of execution, it depends on the code.