title: Write code to print all numbers from 1 to `num` JavaScript
body: <p>I'm given a problem to "Write code to print all (whole) numbers from 1 to <code>num</code>(argument inclusive) in JavaScript
  (Assume <code>num</code> will be a positive number) (e.g if num=4 it should print 1,2,3,4)
  Could anyone help please.</p>
  
  <pre><code>    var logNums = function(num) {}
  </code></pre>