JavaScript Node.js Basics Building a Command Line Application Making a GET Request with https

Require method

I don't really understand why do we need to use the require method.

2 Answers

Shivangi Sriv
Shivangi Sriv
Full Stack JavaScript Techdegree Student 260 Points

Hey Benjamin Mercier , require is used to load an external module.
In order to use , https module , you have to include it first .
In order to use Node.js module , we have to first require it.
Thanks :)

Routine Poutine
Routine Poutine
26,034 Points

What is the https module that require loads? Actually, what is a module and how is the https an instance of it?