JavaScript Interview QA
JavaScript Interview QA
A1: '==' compares values after type coercion, whereas '===' compares both value and type without
coercion.
A2: A closure is a function that has access to its own scope, the outer function's scope, and the
A3: The event loop is a mechanism that handles asynchronous operations by placing them in a
A4: Hoisting is JavaScript's default behavior of moving declarations to the top of the current scope
A5: Promises represent the eventual completion (or failure) of an asynchronous operation and its
resulting value.