JS Coding Questions Logo
JS Coding Questions
#7🎯 Exercise💻 Code

JavaScript Coding Exercise 7

Advertisement

728x90
javascript
1var myChars = ["a", "b", "c", "d"];
2
3delete myChars[0];
4
5console.log(myChars);
6
7console.log(myChars[0]);
8
9console.log(myChars.length);

Choose the correct output:

A
[empty, 'b', 'c', 'd'], empty, 3
B
[null, 'b', 'c', 'd'], empty, 3
C
[empty, 'b', 'c', 'd'], undefined, 4
D
[null, 'b', 'c', 'd'], undefined, 4

Advertisement

Responsive Ad
7of86