Way2tutorial Snippet Editor
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>JavaScript Array Associative</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 (1st record) return console.log(users[0]["Name"]); // index 0, Key: Name value return </script> </body> </html>