Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Benjamin Mercier
270 PointsRequire method
I don't really understand why do we need to use the require method.
2 Answers

Shivangi Sriv
Full Stack JavaScript Techdegree Student 261 PointsHey 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
26,038 PointsWhat is the https module that require loads? Actually, what is a module and how is the https an instance of it?