Skip to content

Commit 53b50a3

Browse files
authored
Merge pull request #43 from AzadAnsari35/main
New Question added
2 parents a836d58 + 41c462e commit 53b50a3

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

code-snippets/arrays.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,35 @@ console.log(array3.concat(6, 7));
306306

307307
#### Option: A
308308

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+
309338
</p>
310339
</details>
311340
</li>

0 commit comments

Comments
 (0)