title: Creating a Countdown with JavaScript
body: <p>I am trying to make a Countdown that just log in the terminal the seconds remaining. It should be an interval of 1 second between every log. It has to be as a method of an object. I don´t know if it's because of the scope but somehow it's not working after many trials and code-rewriting.</p>
  <p>Anybody can help me with this?</p>
  <pre><code>var Countdown = function(seconds) {
      this.counter = seconds;
      this.start = function() {
          setTimeout(
              function() {
                  while (this.counter &gt;= 0) {
                      console.log(this.counter);
                      this.counter -= 1;
                  }
              },1000)
      }
  }
  </code></pre>