Search for '{{search_term}}'

Using Underscore in Node.js and in the browser

Underscore.js provides lots of small functions to
help you use JavaScript as a functional programming language. Besides the actual functions it provides,
it can also be great for learning more JavaScript as it provides an annotated version of its source code
and it also allows us to use it both as a Node.js module and in the browser.

Let's see how is that done.

Use Underscore in Node.js

Install Underscore.js using npm install underscore, that will install it
locally in the node_modules subdirectory. Then write the following code: