diff --git a/curriculum/challenges/english/25-front-end-development/lecture-understanding-asynchronous-programming/673407e02bcf0d682b9a49a9.md b/curriculum/challenges/english/25-front-end-development/lecture-understanding-asynchronous-programming/673407e02bcf0d682b9a49a9.md index a2776e29786..ad40e5d1e13 100644 --- a/curriculum/challenges/english/25-front-end-development/lecture-understanding-asynchronous-programming/673407e02bcf0d682b9a49a9.md +++ b/curriculum/challenges/english/25-front-end-development/lecture-understanding-asynchronous-programming/673407e02bcf0d682b9a49a9.md @@ -113,36 +113,36 @@ The JavaScript code you write. ## --text-- -What is the purpose of the event loop in JavaScript? +Which of the following best describes the difference between a JavaScript engine and its runtime? ## --answers-- -To create visual loops in web animations. +The engine provides features like the Fetch API and the DOM; the runtime only parses and executes code. ### --feedback-- -Think about how JavaScript handles tasks that might take some time to complete. +Think about the distinct roles of the JavaScript engine and the runtime environment. --- -To repeatedly execute a block of code. +The engine parses and executes code; the runtime provides the engine plus additional features like the Fetch API and the DOM. + +--- + +The runtime compiles code into bytecode and machine code; the engine just interprets the code. ### --feedback-- -Think about how JavaScript handles tasks that might take some time to complete. +Think about the distinct roles of the JavaScript engine and the runtime environment. --- -To manage asynchronous operations and keep the program responsive. - ---- - -To loop through arrays efficiently. +They are the same thing—engine and runtime are interchangeable terms. ### --feedback-- -Think about how JavaScript handles tasks that might take some time to complete. +Think about the distinct roles of the JavaScript engine and the runtime environment. ## --video-solution-- -3 +2