Guest User

Untitled

a guest
Sep 24th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>JS Bin</title>
  7. </head>
  8. <body>
  9.  
  10. <script id="jsbin-javascript">
  11. // Write your code below this line
  12.  
  13. var contacts = {
  14. firstName : "Sanju,"
  15. lastName: "Asho,"
  16. phone : "(512) 355-0453,"
  17. email : "sanjuasho@email.com"
  18. },
  19.  
  20. {
  21. firstName : "Jan,"
  22. lastName : "Doe,"
  23. phone : "(312) 641-2203,"
  24. email : "janedoe@email.com"
  25. },
  26.  
  27. {
  28. firstName: "Haru,"
  29. lastName : "Ito,"
  30. phone : "(415) 604-4219,"
  31. email : "haruito@email.com"
  32.  
  33. };
  34.  
  35. for (var i = 0; i < arrayName.length; i++)
  36. {
  37. console.log(contacts[i].email);
  38. };
  39. </script>
  40.  
  41.  
  42.  
  43. <script id="jsbin-source-javascript" type="text/javascript">// Write your code below this line
  44.  
  45. var contacts = {
  46. firstName : "Sanju,"
  47. lastName: "Asho,"
  48. phone : "(512) 355-0453,"
  49. email : "sanjuasho@email.com"
  50. },
  51.  
  52. {
  53. firstName : "Jan,"
  54. lastName : "Doe,"
  55. phone : "(312) 641-2203,"
  56. email : "janedoe@email.com"
  57. },
  58.  
  59. {
  60. firstName: "Haru,"
  61. lastName : "Ito,"
  62. phone : "(415) 604-4219,"
  63. email : "haruito@email.com"
  64.  
  65. };
  66.  
  67. for (var i = 0; i < arrayName.length; i++)
  68. {
  69. console.log(contacts[i].email);
  70. };
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77. </script></body>
  78. </html>
Add Comment
Please, Sign In to add comment