How does async work in JavaScript if JS is a Single-threaded language?
JavaScript is a single-threaded language, which means it has only one call stack that is used to execute the program. JavaScript is a single-threaded language, which means it has only one call stack that is used to execute the program.