title: Question about object.method in JavaScript
body: <p>This is a follow-up question to <a href="https://stackoverflow.com/questions/369220/why-should-you-not-use-number-as-a-constructor">this one</a>.</p>
  
  <p>Take a look at these two examples: </p>
  
  <pre><code>var number1 = new Number(3.123);
  number1 = number1.toFixed(2); 
  alert(number1);
  
  var number2 = 3.123;
  number2 = number2.toFixed(2);
  alert(number2);
  </code></pre>
  
  <p>I realize they both end up with the same value, but is it correct thinking to refer to a method of a primitive value? (In other words, 3.123.method as opposed to object.method?)</p>