Extracting integer from a number
<p>I recently purchase Javascript the Goods Parts by Douglas Crockford. I was going through the Augmenting Types section and I needed some help in the following code concept.</p>

<pre><code>Number.method("integer", function(){
  return Math[this &lt; 0 ? "ceiling" : "floor"] (this);
});

document.writeIn((-10/3).integer());
</code></pre>

<p>According to the book the result should be 3 but I am getting an error while I did console.log instead of document.writeIn.</p>

<p>Number.method is not a function. Being a javascript beginner, I am a bit confused, any help would be appreciated.</p>

<p>Thank You. 
Udit G.</p>
