Skip to content

Commit 06c344c

Browse files
fix(curriculum): replace a question in JavaScript Asynchronous Programming lecture (freeCodeCamp#61173)
Co-authored-by: Huyen Nguyen <[email protected]>
1 parent a9da775 commit 06c344c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

curriculum/challenges/english/25-front-end-development/lecture-understanding-asynchronous-programming/673407e02bcf0d682b9a49a9.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -113,36 +113,36 @@ The JavaScript code you write.
113113

114114
## --text--
115115

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?
117117

118118
## --answers--
119119

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.
121121

122122
### --feedback--
123123

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.
125125

126126
---
127127

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.
129129

130-
### --feedback--
130+
---
131131

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.
133133

134-
---
134+
### --feedback--
135135

136-
To manage asynchronous operations and keep the program responsive.
136+
Think about the distinct roles of the JavaScript engine and the runtime environment.
137137

138138
---
139139

140-
To loop through arrays efficiently.
140+
They are the same thing—engine and runtime are interchangeable terms.
141141

142142
### --feedback--
143143

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.
145145

146146
## --video-solution--
147147

148-
3
148+
2

0 commit comments

Comments
 (0)