title: JavaScript Countdown program
body: <p>im trying to write a program in JavaScript that fulfils this prompt</p>
  
  <p>Write a JavaScript function
  countDown(i)
  that takes an integer argument and returns a \countdown" from i to 0, with a space appearing between
  each number.
  For example, countDown(5) should return the string "5 4 3 2 1 0". As for the rst problem, you may
  want to test your solution on the computer.</p>
  
  <p>sofar I have this</p>
  
  <pre><code>var i= "";
  
  function countdown(i)
  
  {
  
      while( i &gt; 0)
  
      {
          console.log(integer);
          i--;
      }
  }
  countdown();
  </code></pre>
  
  <p>can someone please help me im very new to programing</p>