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

How to write normal text code using JavaScript dynamically?

677


What is javascript bom?

731


How do you check if a variable is an object

774


Explain promise in javascript?

593


Can an anonymous function be assigned to a variable?

658


How can you convert the string of any base to integer in JavaScript?

714


What is object freeze?

664


What is missing in my code? function numberTally(numList) { var evenTotal = 0; var oddTotal = 0; for (var i = 0; i <= numList.length; i++) { if i % 2 { // i is odd oddTotal += numList[i]; // or oddTotal = oddTotal + numList[i]; } else { // i is even evenTotal + numList[i]; } } alert(oddTotal); return evenTotal; }

3099


How many types of functions are there in javascript?

610


What is client side programming?

657


How to write a hello world example of javascript?

670


What does the enableviewstatemac setting in an aspx page do?

696


How do I view javascript in chrome?

671


What does "1"+2+3 evaluate to?

721


What is the microsoft version of javascript?

710