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

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
23,037 Points

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