Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Tutorial Basic Detail
Total Hits: 24091
Total Votes: 236 votes
Average Rating: 3.52 out of 5
Category: Java Script/Misc
Description:Asynchronous method generally has some callback like success, error or complete.There are many situation while coding in java script where we need to call a block of code after an asynchronous method finished execution.This is where we see the problem as:-
--Browser does not wait for asynchronous method to complete and start executing the next line.
--If We will write the block of code after success method then it create a messy code base to manage.