What is the difference between synchronous and asynchronous JavaScrip

Answer Posted / hr@tgksolutions.com

• Synchronous JavaScript: Code executes line-by-line, blocking the execution until the current operation completes.
• Asynchronous JavaScript: Allows execution to continue without waiting for previous operations to complete (e.g., setTimeout(), Promises, and async/await).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is unobtrusive javascript? How to add behavior to an element using javascript?

724


Can you assign a anonymous function to a variable?

740


Describe what u had done today?

2030


How can you get the reference of a caller function inside a function?

813


What is the output of 10+20+”30″ in JavaScript?

974


What is the difference between client side javascript and server side javascript.

772


How to create an input box?

769


How to create scale in P info

2190


Where can I learn javascript for beginners?

672


How to convert json object to string?

758


What does the term sticky session mean in a web-farm scenario?

736


What is null in javascript?

725


What is the function of delete operator?

756


Difference json arrary vs json object ?

731


What is lazy loading java?

672