} "Saideep": "Infosys", Example. myObject.fedex= ".fed"; A multidimensional array is an array of arrays. © 2020 - EDUCBA. Here we can see why associative arrays cannot be created in javascript like a normal array, instead, we can create it using javascript objects. Instead of looping the associative array, we can also display the array elements using Object.keys(). Take a look at the following script: JavaScript array syntax is similar to regular variables. Code: