Instruction: Explain the mechanisms JavaScript uses to handle asynchronous operations.
Context: This question is aimed at understanding the candidate's knowledge on JavaScript's event loop, callback queue, and how asynchronous code is executed.
easy
hard