JavaScript: Arrays vs Objects

added by JavaScript Kicks
8/5/2019 7:28:51 AM

750 Views

When learning JavaScript, we all stumble across the phrase "Arrays are just Objects in JavaScript". Today, we're going to put that statement under the microscope. let groceries = ["apples"]console.log(typeof groceries) // Logs "object" Looking at the code it is quite obvious that an array is of type object.


0 comments