daily pastebin goal
65%
SHARE
TWEET

Untitled

a guest Jul 21st, 2017 443 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. var contacts = [
  12.      {
  13.          firstName: "John",
  14.          lastName: "Doe",
  15.          phone: "(512) 355-0453",
  16.          email: "johndoe@email.com"
  17.      },
  18.      {
  19.          firstName: "Jane",
  20.          lastName: "Doe",
  21.          phone: "(312) 641-2203",
  22.          email: "janedoe@email.com"
  23.      },
  24.      {
  25.          firstName: "Suzie",
  26.          lastName: "Smith",
  27.          phone: "(415) 604-4219",
  28.          email: "suziesmith@email.com"
  29.      }
  30.  ];
  31.  var listContacts = function() {
  32.    for (var i = 0; i < contacts.length; i++) {
  33.      console.log(contacts[i].firstName + ' ' + contacts[i].lastName);
  34.    }
  35.  };
  36.  
  37.  listContacts();
  38. </script>
  39.  
  40.  
  41.  
  42. <script id="jsbin-source-javascript" type="text/javascript">  var contacts = [
  43.      {
  44.          firstName: "John",
  45.          lastName: "Doe",
  46.          phone: "(512) 355-0453",
  47.          email: "johndoe@email.com"
  48.      },
  49.      {
  50.          firstName: "Jane",
  51.          lastName: "Doe",
  52.          phone: "(312) 641-2203",
  53.          email: "janedoe@email.com"
  54.      },
  55.      {
  56.          firstName: "Suzie",
  57.          lastName: "Smith",
  58.          phone: "(415) 604-4219",
  59.          email: "suziesmith@email.com"
  60.      }
  61.  ];
  62.  var listContacts = function() {
  63.    for (var i = 0; i < contacts.length; i++) {
  64.      console.log(contacts[i].firstName + ' ' + contacts[i].lastName);
  65.    }
  66.  };
  67.  
  68.  listContacts();
  69. </script></body>
  70. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top