Please explain “asynchronous” and “synchronous” in programming with an example. What does it mean? What are the benefits?
synchronous is single thread execuation programming but in asynchronous, the asynchronous code will execute in another thread/browser API to make responsive ui intraction only.