Stack Exchange
Stack Overflow
Questions
Tags
Users
About
Stack Overflow
Public
Questions
Tags
Users
About
what is the difference between items = [] and map = {}?
Asked
Dec 22 '16 at 10:24
Active
Dec 22 '16 at 10:28
Viewed
37 times
0
What is the difference between those variables in jQuery ?
items = []; map = {};
jquery
edited Dec 22 '16 at 10:28
empiric
7,825
7
37
48
asked Dec 22 '16 at 10:24
MOHAMED
13
5
3
`[]` is an [array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), `{}` is an [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
–
empiric
Dec 22 '16 at 10:26
many thanks for your support
–
MOHAMED
Dec 22 '16 at 11:57
0 Answers
0