title: Invoked Global Function and can't return defined variables
body: <p>This is my code </p>
  
  <pre><code>&lt;script id="candidateCode"&gt;
  
      getCar(); //Invokes global func getCar
      getCar(); //Invoked global func getCar
  
      var myDreamCar = getDreamCar();
  
      var firstCar = { make: "Honda", model: "Accord" };
      var anotherCar = { make: "Honda", model: "Civic" };
  
      function getYear() {
          return 2019;
      };
  
      function getCity() {
          return "Laguna Beach";
      };
  
      function getTruck() {
          return myTruck;
      };
  
  &lt;/script&gt;
  </code></pre>
  
  <p>In this exercise, I am being asked to first invoke a global predefined function "getCar" and so far I have passed all steps of the exercise besides the following. </p>
  
  <p>I for some reason, cannot figure out for the LIFE OF ME, how to assign the variable firstCar and anotherCar to the function getCar(). </p>
  
  <p>Is this a scope issue? Can anyone help? I've invoked the function twice, but I find it impossible to assign the return value to variables I have declared above? </p>
  
  <p>Any insight? THANK YOU IN ADVANCE</p>
  
  <p>My instructions are:</p>
  
  <p>1 - There is a global function defined for you named getCar. Invoke this function 2 times.</p>
  
  <p>2 - When you invoke the function getCar assign the return value to variables declared with the var keyword and use the following names:
  firstCar
  anotherCar</p>
  
  <p>3- There is a global function defined for you named getDreamCar. Invoke this function 1 time and assign value to a variable named myDreamCar.</p>