From the course: Learning Functional Programming with JavaScript (ES5)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Installing Lodash and running code

Installing Lodash and running code - JavaScript Tutorial

From the course: Learning Functional Programming with JavaScript (ES5)

Start my 1-month free trial

Installing Lodash and running code

- [Instructor] Let's take a look at how to run the sample code. First navigate to your exercise files folder using the command line. For example, if you saved the exercise files in the documents folder, you would type cd tilda slash documents slash exercise underscore files. Remember that you can see the contents of the folder you're currently in by typing ls. Here we see that we have the exercise file folders for each chapter. Now, once we're inside the exercise files folder, we're going to create a package.json file. What this file does is help the node package manager keep track of the npm packages we've installed. And, to create this file we're going to type npm init dash y. And we see that everything has been created properly. In order for most of our code to work for this course, we'll need to install an npm package called low dash which contains a lot of useful methods for functional programming. To install this package for our project, simply type npm install, low dash, dash…

Contents