You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: curriculum/challenges/english/25-front-end-development/lecture-understanding-asynchronous-programming/673407e02bcf0d682b9a49a9.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,36 +113,36 @@ The JavaScript code you write.
113
113
114
114
## --text--
115
115
116
-
What is the purpose of the event loop in JavaScript?
116
+
Which of the following best describes the difference between a JavaScript engine and its runtime?
117
117
118
118
## --answers--
119
119
120
-
To create visual loops in web animations.
120
+
The engine provides features like the Fetch API and the DOM; the runtime only parses and executes code.
121
121
122
122
### --feedback--
123
123
124
-
Think about how JavaScript handles tasks that might take some time to complete.
124
+
Think about the distinct roles of the JavaScript engine and the runtime environment.
125
125
126
126
---
127
127
128
-
To repeatedly execute a block of code.
128
+
The engine parses and executes code; the runtime provides the engine plus additional features like the Fetch API and the DOM.
129
129
130
-
### --feedback--
130
+
---
131
131
132
-
Think about how JavaScript handles tasks that might take some time to complete.
132
+
The runtime compiles code into bytecode and machine code; the engine just interprets the code.
133
133
134
-
---
134
+
### --feedback--
135
135
136
-
To manage asynchronous operations and keep the program responsive.
136
+
Think about the distinct roles of the JavaScript engine and the runtime environment.
137
137
138
138
---
139
139
140
-
To loop through arrays efficiently.
140
+
They are the same thing—engine and runtime are interchangeable terms.
141
141
142
142
### --feedback--
143
143
144
-
Think about how JavaScript handles tasks that might take some time to complete.
144
+
Think about the distinct roles of the JavaScript engine and the runtime environment.
0 commit comments