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/quiz-javascript-classes/67358ac128957c865dcf3ddf.md
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ What does `this` represent inside a class constructor?
87
87
88
88
#### --distractors--
89
89
90
-
The global object.
90
+
The global class object.
91
91
92
92
---
93
93
@@ -99,7 +99,7 @@ An undefined reference.
99
99
100
100
#### --answer--
101
101
102
-
The instance of the class being created.
102
+
An instance of the class.
103
103
104
104
### --question--
105
105
@@ -109,19 +109,19 @@ Which of the following describes how `this` behaves in an arrow function inside
109
109
110
110
#### --distractors--
111
111
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.
113
113
114
114
---
115
115
116
116
It refers to a newly created instance of the class.
117
117
118
118
---
119
119
120
-
It refers to `undefined` by default.
120
+
It inherits the value of `this` from the global object in strict mode.
121
121
122
122
#### --answer--
123
123
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.
125
125
126
126
### --question--
127
127
@@ -131,19 +131,19 @@ What is the primary purpose of the `extends` keyword?
131
131
132
132
#### --distractors--
133
133
134
-
To define static methods in a class.
134
+
To define static methods in a parent class constructor.
135
135
136
136
---
137
137
138
138
To create a method in a class.
139
139
140
140
---
141
141
142
-
To initialize properties in the parent class.
142
+
To initialize default properties in the parent class.
143
143
144
144
#### --answer--
145
145
146
-
To create a subclass that inherits methods from a parent class.
146
+
To create a subclass that inherits from a parent class.
147
147
148
148
### --question--
149
149
@@ -222,15 +222,15 @@ What is the function of the `super` keyword in a subclass?
222
222
223
223
#### --distractors--
224
224
225
-
To define a new instance of a class.
225
+
To define a new instance of the parent class.
226
226
227
227
---
228
228
229
-
To delete properties from a class.
229
+
To delete methods and properties from the parent class.
230
230
231
231
---
232
232
233
-
To access only the static methods of a class.
233
+
To access only the static methods of the parent class.
234
234
235
235
#### --answer--
236
236
@@ -490,7 +490,7 @@ An undefined variable.
490
490
491
491
#### --answer--
492
492
493
-
The specific instance of `Animal` being created.
493
+
The instance of `Animal`.
494
494
495
495
### --question--
496
496
@@ -500,7 +500,7 @@ What is the primary use of static properties?
500
500
501
501
#### --distractors--
502
502
503
-
To set default values for each instance.
503
+
To define default propeties for each class instance.
504
504
505
505
---
506
506
@@ -512,4 +512,4 @@ To define instance-specific data.
512
512
513
513
#### --answer--
514
514
515
-
To store class-wide data that remains constant across instances.
0 commit comments