Editor Arrow Download Open
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>JavaScript multidimensional arrays</title> </head> <body> <script type="text/javascript"> // Press F12 - View result on Console Panel var users = [ [ { "Name":"Opal Kole", "Address":"63 street Ct." }, { "Name":"Max Miller", "Address":"41 NEW ROAD." } ], [ { "Name":"Beccaa Moss", "Address": "2500 green city." }, { "Name":"Paul Singh", "Address": "1343 Prospect St" } ]]; console.log(users[0]); // index 0 (object record), object return console.log(users[0][0]); // index 0, return first object record console.log(users[0][0]["Name"]); // index 0, return name key </script> </body> </html>
  Preview Arrow