Data Structure Algorithm, Linked List, Binary Search, Hash Tables, Curry Function, Bind Method, Harmless Ransom Note etc.
- What is logged out of each console.log statement?
let arr1 = [];
let arr2 = new Array(50);
let arr3 = new Array(1,2,"three",4,'five');
let arr4 = new Array([1,2,3,4,5]);
console.log('arr1: ', arr1); // []
console.log('arr2: ', arr2); // [<50 empty items>]
console.log('arr3: ', arr3); //[1,2,'three',4,'five']
console.log('arr4: ', arr4); // [[1,2,3,4,5]]