From 06c344c91d5c9ee2853d8032f5da9c97d4010e30 Mon Sep 17 00:00:00 2001 From: Bhuvan Annappa <164722894+Cyanidebob0@users.noreply.github.com> Date: Mon, 21 Jul 2025 23:02:27 +0530 Subject: [PATCH] fix(curriculum): replace a question in JavaScript Asynchronous Programming lecture (#61173) Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- .../673407e02bcf0d682b9a49a9.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) 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