title: Are you supposed to be able to set a variable to a function return if Javascript is asynchronous?
body: <pre><code>var identifier = '0';
  var serviceCodes = parseServiceCodes(identifier);
  console.log(serviceCodes);
  
  function parseServiceCodes(id){
    var serviceCodes = id + 'HYJSIXNS';
    return serviceCodes
  }
  </code></pre>
  
  <p>0HYJSIXNS is returned in the console. But I thought that since JavaScript is asynchronous, the variable would be assigned before the function is returned, making it null.</p>