L&T Technology Services Interview Question

is JavaScript synchronous or asynchronous language

Interview Answer

Anonymous

Mar 26, 2025

JavaScript is synchronous by default, meaning it executes code line by line, one task at a time, in a single-threaded environment. However, JavaScript can be asynchronous when handling tasks like API calls, timers, and file reading using callbacks, promises, and async/await