Is it possible to have a key value pair in arrays in javascript. I'm looking to have something like the following
const array =
[
'item': 'Jumper', 'price', '160',
'item': 'Shirt', 'price', '50',
'item': 'Cap', 'price', '20',
]
Or is there a better datastructure to use?