title: Why async function objects get disappaer after first run?
body: <p>I am confused about async and await. to use an await, it should be in an async function, ok, but then how first one will start ?</p>
  
  <p>I have a async function and it has awaits chain inside it. When I refresh it runs and I can see object values but later they disappear. getMyValues is my function and the problem is; when I debug, I can see objects and its values but its disappear when I want to use them later, only I can use strings I get from them, even they disappear sometimes. </p>
  
  <p>So, I have few questions;
  Q1) Why object become undefined ? I know javascript objects are dynamic, but I see issue even I make a deepclone. How does it happen same session works again and even that session object becomes undefined..</p>
  
  <pre><code> async function getMyValues() {
   // Initialize a session. 
   var session = await myclass.createSession(5)
   var myValues = session.getValues()
  </code></pre>
  
  <p>I run like this;</p>
  
  <pre><code>     getMyValues()
  </code></pre>
  
  <p>Q2) If I put return inside that function and run like that I can see a promise in debug..How to return a value from these kind of functions properly ?</p>
  
  <p>let myvals = getMyValues()</p>