title: javascript - Uncaught ReferenceError: keys is not defined
body: <p>I am getting an error when I run the following command in an included script. But if I run the command from the google chrome console, it works properly. </p>
  
  <pre><code>var a = {};
  console.log(keys(a));
  </code></pre>
  
  <p>Error: </p>
  
  <pre><code> Uncaught ReferenceError: keys is not defined 
  </code></pre>
  
  <p>What's going on here?  How can I use the <code>keys</code> function in an included script?</p>