title: Need a code to count from one to ten in javascript
body: <p>Need a simple code that can count from 1 -10 in javascript</p>
  
  <p>I have tried :</p>
  
  <pre><code>function countToTen() {
      console.log("1");
      console.log("2");
      console.log("3");
      console.log("4");
      console.log("5");
      console.log("6");
      console.log("7");
      console.log("8");
      console.log("9");
      console.log ("10");
  }
  
  return countToTen;
  </code></pre>
  
  <p>but I guess this is wrong. Can anyone help please?</p>