We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a836d58 + 41c462e commit 53b50a3Copy full SHA for 53b50a3
code-snippets/arrays.md
@@ -306,6 +306,35 @@ console.log(array3.concat(6, 7));
306
307
#### Option: A
308
309
+</p>
310
+</details>
311
+</li>
312
+
313
+---
314
315
+<li>
316
317
+**Guess the following output?**
318
319
+```JS
320
+const clothes = ['jacket', 't-shirt'];
321
+clothes.length = 0;
322
323
+console.log(clothes[0]);
324
+```
325
326
+- A: `jacket`
327
+- B: `undefined`
328
+- C: `error`
329
+- D: `not defined`
330
331
+<br/>
332
+<details>
333
+<summary><b>Answer</b></summary>
334
+<p>
335
336
+#### Option: B
337
338
</p>
339
</details>
340
</li>
0 commit comments