array or object javascript

Solutions on MaxInterview for array or object javascript by the best coders in the world

showing results for - "array or object javascript"
Alma
20 May 2017
1To remember the difference, you can think of "is a / has a" 
2
3let fruits = [
4  orange, 
5  mango, 
6  banana
7];
8// Every item in the array "fruits" is a fruit. 
9
10let fruit = {
11  seed:{}, 
12  endocarp:{}, 
13  flesh:{}
14};
15// The object fruit has every attribute inside the object.
similar questions
queries leading to this page
array or object javascript