title: how can i print this java script code in google chrome browser
body: <p>I have used <code>console.log()</code> to print this code but it shows nothing in the browser. What is the problem? Is there any other ways to print it without using <code>console.log()</code>? I am using Google Chrome as a browser.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var database = [{
    username: "omar",
    password: "secret"
  }];
  
  var newsFeed = [{
      username: "Amer",
      timeline: "i hate studying"
    },
    {
      username: "Khalid",
      timeline: "i'm hungry "
    }
  ];
  
  var userName = prompt("what is your username?");
  var passWord = prompt(" what is your password?");
  
  function signIn(user, pass) {
    if (user === database[0].username &amp;&amp; pass === database[0].password) {
      console.log(newsFeed);
  
    } else
      alert("sorry your username or password is not correct!");
  }
  
  signIn(userName, passWord);</code></pre>
  </div>
  </div>
  </p>