title: How to get an account address from Metamask?
body: <p><code>accounts[0]</code> returns <code>undefined</code> in this code.</p>
  
  <pre><code>const accounts = await web3.eth.getAccounts()
  console.log(accounts[0])
  </code></pre>
  
  <p>I uninstalled Metamask and reset the account, but that didn`t work.</p>
  
  <p>web3 version is <code>web3@1.0.0-beta.37</code>.</p>
  
  <p>Could you give me any advise, why I cannot get an account address from Metamask?</p>