07: Prompting Input

This exercise will teach you about both the npm tool and how to require modules. Before you can type the code in you will need to run some commands to get a module called readline-sync installed. You don't have to use this module but it really helps when asking someone simple questions.

To install readline-sync you run the following command:

$ npm install readline-sync

This may take a while, and when it's done you will see that this module is installed. Then you can test it by running node:

Learn JavaScript Today

Register today for the Beginner Basics course and get the new releases by just paying the difference. There's also special discounts for existing customers when new courses are released.

Still Not Sure? Check out more curriculum!