title: Loops that continue until all possible answers had been found
body: <pre><code>function TotalAwards(fullName){
  var medals = getColumn(&quot;Olympic Medals&quot;, &quot;Medal&quot;);
  var firstName = getColumn(&quot;Olympic Medals&quot;, &quot;Athlete First Name&quot;);
  var lastName = getColumn(&quot;Olympic Medals&quot;, &quot;Athlete Last Name&quot;);
   for(var i=0; i&lt;medals.length; i++){
     if (firstName[i] + &quot; &quot; + lastName[i] == fullName){
       return medals[i];
     }
    }
   return &quot;Not found&quot;;
  }
  </code></pre>
  <p>So this code is to call on the awards won by a particular winner. What's wrong here is that it only gets the first award of the winner. the second , third , fourth awards are not included. Can anyone help me to fix this?</p>
  <pre><code>console.log (TotalAwards(&quot; Mathew Helm&quot;, true));
  </code></pre>
  <p>when I tried with console log to list down the awards of mathew helm, it only prints out his first medal which is silver. The others awards he received in the later years are'nt printed put</p>