Skip to content

Commit 8e8c5b0

Browse files
authored
refactor(curriculum): js classes quiz (freeCodeCamp#58526)
1 parent ee43b95 commit 8e8c5b0

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

curriculum/challenges/english/25-front-end-development/quiz-javascript-classes/67358ac128957c865dcf3ddf.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ What does `this` represent inside a class constructor?
8787

8888
#### --distractors--
8989

90-
The global object.
90+
The global class object.
9191

9292
---
9393

@@ -99,7 +99,7 @@ An undefined reference.
9999

100100
#### --answer--
101101

102-
The instance of the class being created.
102+
An instance of the class.
103103

104104
### --question--
105105

@@ -109,19 +109,19 @@ Which of the following describes how `this` behaves in an arrow function inside
109109

110110
#### --distractors--
111111

112-
It refers to the method calling the arrow function.
112+
It inherits the value of `this` from the nearest function in a different scope.
113113

114114
---
115115

116116
It refers to a newly created instance of the class.
117117

118118
---
119119

120-
It refers to `undefined` by default.
120+
It inherits the value of `this` from the global object in strict mode.
121121

122122
#### --answer--
123123

124-
It inherits the value of `this` from the enclosing scope where they are defined.
124+
It inherits the value of `this` from the enclosing scope where it is defined.
125125

126126
### --question--
127127

@@ -131,19 +131,19 @@ What is the primary purpose of the `extends` keyword?
131131

132132
#### --distractors--
133133

134-
To define static methods in a class.
134+
To define static methods in a parent class constructor.
135135

136136
---
137137

138138
To create a method in a class.
139139

140140
---
141141

142-
To initialize properties in the parent class.
142+
To initialize default properties in the parent class.
143143

144144
#### --answer--
145145

146-
To create a subclass that inherits methods from a parent class.
146+
To create a subclass that inherits from a parent class.
147147

148148
### --question--
149149

@@ -222,15 +222,15 @@ What is the function of the `super` keyword in a subclass?
222222

223223
#### --distractors--
224224

225-
To define a new instance of a class.
225+
To define a new instance of the parent class.
226226

227227
---
228228

229-
To delete properties from a class.
229+
To delete methods and properties from the parent class.
230230

231231
---
232232

233-
To access only the static methods of a class.
233+
To access only the static methods of the parent class.
234234

235235
#### --answer--
236236

@@ -490,7 +490,7 @@ An undefined variable.
490490

491491
#### --answer--
492492

493-
The specific instance of `Animal` being created.
493+
The instance of `Animal`.
494494

495495
### --question--
496496

@@ -500,7 +500,7 @@ What is the primary use of static properties?
500500

501501
#### --distractors--
502502

503-
To set default values for each instance.
503+
To define default propeties for each class instance.
504504

505505
---
506506

@@ -512,4 +512,4 @@ To define instance-specific data.
512512

513513
#### --answer--
514514

515-
To store class-wide data that remains constant across instances.
515+
To store class-wide data shared across instances.

0 commit comments

Comments
 (0)