I am new to async/await in javascript. In the following code, I have an async function with a jquery ajax call that resolves. However, when I return the *cart* variable and set it to *arr*, I get an undefined value in console that shows up first, which means that console.log(arr) is firing before. How do I return this value into *arr*, and work on that variable?

```
async function what(http) {
  let d = await $.ajax({
    url: http,
    method: "GET"
  });
  console.log(d); ///this outputs the resolved promise.
  console.log(d.results); //as does this.

  let cart = await d.results;
  console.log("cart " + cart[0]); //as does this
  return cart; //this returns as undefined.
}
var arr = what(http);
console.log(arr); //this returns as undefined.

```

I feel like I should be able to return the value out of the function and then continue with my code.