title: error while trying to augment the in-built types in javascript
body: <p>I'm trying to augment the in-built <code>Number</code> data type of javascript using below code in script tag of my HTML page:</p>
  
  <pre><code> Number.method('integer', function () {
          return Math[this &lt; 0 ? 'ceiling' : 'floor'](this);
          });
          document.writeln((-10 / 3).integer( )); 
  </code></pre>
  
  <p>when I browse the page in browser then developer tools report following error:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Number.method is not a function<br>
    at test.html:10 
    (anonymous) @ test.html:10</p>
  </blockquote>
  
  <p><strong>Browser Information</strong>: Google Chrome</p>
  
  <p>I'm unable to identify the error in my code. Can someone help me please?</p>