Beginner JavaScript OOP vs Functional
<p>I'm just starting to research different programming styles (OOP, functional, procedural).</p>

<p>I'm learning JavaScript and starting into underscore.js and came along <a href="http://underscorejs.org/#oop" rel="noreferrer">this</a> small section in the docs.
The docs say that underscore.js can be used in a Object-Oriented or Functional style and that both of these result in the same thing.</p>

<pre><code>_.map([1, 2, 3], function(n){ return n * 2; });
_([1, 2, 3]).map(function(n){ return n * 2; });
</code></pre>

<p>I don't understand which one is functional and which one is OOP, and I don't understand why, even after some research into these programming paradigms.</p>