Skip to main content

Posts

Showing posts with the label why asynchronous code is important in JavaScript

jQuery alert/confirm dialog box Yes/No and Ok

Follow steps to create your jQuery  confirmation dialog and Alert dialog box. 1.        Use jQuery and jQuery UI reference files. 2.        Global master HTML div with a page element for appends and display dialog box dynamically. 3.        JavaScript confirm dialog box Yes/No and Alert dialog Ok , common methods. 4.        Use of common methods to display jQuery confirm dialog box Yes/No and Alert dialog Ok .                                              I.             Alter dialog OK               ...

Why asynchronous code is important in JavaScript?

Explained In detail as given below Using Asynchronous  code, we are able to execute multiple things/JavaScript call at the same-time without locking the DOM or main thread. You can define a global variable for call-back method. You can use call-back method because JavaScript is  lexical  scoped and can't define a variable in the call-back methods. The response and data come from the parent's call-back method. etc.. Thank you! For more detail you can go  http://stackoverflow.com/questions/11233633/understanding-asynchronous-code-in-laymans-terms