title: Can't set a variable from a Fetch
body: <p>I'm having problems returning a variable from the following fetch:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var CSE="";
  
      async function checkEngine(engine) {
                      const response = await fetch(engine);
                      const json = await response.json();
                      CSE = await "" + Object.keys(json)[0];
  
                      console.log(CSE);
                  }
  
                  for (i = 0; i &lt; engines.length; i++) {
                     checkEngine(engines[i]);
                      console.log(CSE + " ");
  
                      if (CSE != "error") {
                          CSE = engines[i];
                          break;
                      }
                  }
                  if (CSE == "error") iframe.src("status.html?text=Search Limit Reached&amp;color=red");</code></pre>
  </div>
  </div>
  </p>