JSFiddle - React, Tailwind, and code Playground

by newblt123

JavaScript

var arr = [];
arr['hello'] = {fr: 'salut', es: 'hola'};
arr['hello2'] = {fr: 'salut', en: 'hi'};

alert(arr['hello']);
arr.forEach(function(item){alert(JSON.stringify(item));});