Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>JS Bin</title>
- </head>
- <body>
- <script id="jsbin-javascript">
- // Write your code below this line
- var contacts = {
- firstName : "Sanju,"
- lastName: "Asho,"
- phone : "(512) 355-0453,"
- email : "sanjuasho@email.com"
- },
- {
- firstName : "Jan,"
- lastName : "Doe,"
- phone : "(312) 641-2203,"
- email : "janedoe@email.com"
- },
- {
- firstName: "Haru,"
- lastName : "Ito,"
- phone : "(415) 604-4219,"
- email : "haruito@email.com"
- };
- for (var i = 0; i < arrayName.length; i++)
- {
- console.log(contacts[i].email);
- };
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">// Write your code below this line
- var contacts = {
- firstName : "Sanju,"
- lastName: "Asho,"
- phone : "(512) 355-0453,"
- email : "sanjuasho@email.com"
- },
- {
- firstName : "Jan,"
- lastName : "Doe,"
- phone : "(312) 641-2203,"
- email : "janedoe@email.com"
- },
- {
- firstName: "Haru,"
- lastName : "Ito,"
- phone : "(415) 604-4219,"
- email : "haruito@email.com"
- };
- for (var i = 0; i < arrayName.length; i++)
- {
- console.log(contacts[i].email);
- };
- </script></body>
- </html>
Add Comment
Please, Sign In to add comment