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
(function() {
var array1 = [];
var array2 = new Array(100);
var array3 = new Array(['1',2,'3',4,5.6]);
console.log(array1);
console.log(array2);
console.log(array3);
console.log(array3.length);
}());
[] [] [Array[5]] 1
[] [undefined × 100] Array[5] 5
[] [] ['1',2,'3',4,5.6] 5
[] [] [Array[5]] 5
Answer: 1) [] [] [Array[5]] 1
Correct is [] [undefined × 100] [Array[5]] 1
The text was updated successfully, but these errors were encountered:
Answer: 1) [] [] [Array[5]] 1
Correct is [] [undefined × 100] [Array[5]] 1
The text was updated successfully, but these errors were encountered: