title: How to store fetched data from API to Global Variable
body: <p><a href="https://i.stack.imgur.com/tegOp.png" rel="nofollow noreferrer"></a>
  As seen in this picture, I have initialized variable madhu globally and assigning the fetched data to this variable inside <code>.then</code> method but it's showing me undefined.
  How can I store this value globally?
  <a href="https://i.stack.imgur.com/tegOp.png" rel="nofollow noreferrer">picture</a></p>