Get a key from an array inside an array - Javascript Array Operation

Javascript examples for Array Operation:Associative Array

Description

Get a key from an array inside an array

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript">
    window.onload=function(){/*w  ww.ja  v  a 2  s .  c o m*/
var Game1 = ["name", "image", "genre"];
var Game2 = ["name2", "image2", "genre2"];
var Game3 = ["name3", "image3", "genre3"];
var games = [Game1, Game2, Game3];
console.log(games[0][0]);
    }

      </script> 
   </head> 
   <body>  
   </body>
</html>

Related Tutorials