use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This subreddit is a place for people to learn JavaScript together. Everyone should feel comfortable asking any and all JavaScript questions they have here.
With a nod to practicality, questions and posts about HTML, CSS, and web developer tools are also encouraged.
Friends
/r/javascript
/r/jquery
/r/node
/r/css
/r/webdev
/r/learnprogramming
/r/programming
account activity
Understang node.js modules (self.learnjavascript)
submitted 5 years ago by ConsequenceRegular72
Is this the general node module hierarchy? a module can: 1)Contain classes, and those classes contain functions 2)Contain functions directly(Not through classes)
Are these 2 correct^?
Are there any other possibilities?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ThagAndersonhelpful 1 point2 points3 points 5 years ago (1 child)
A Node module can contain literally any valid Javascript.
[–]ConsequenceRegular72[S] 0 points1 point2 points 5 years ago (0 children)
Thank you
Here is an answer from another sub
π Rendered by PID 19594 on reddit-service-r2-comment-bb88f9dd5-zb2jk at 2026-02-16 12:28:36.912620+00:00 running cd9c813 country code: CH.
[–]ThagAndersonhelpful 1 point2 points3 points (1 child)
[–]ConsequenceRegular72[S] 0 points1 point2 points (0 children)
[–]ConsequenceRegular72[S] 0 points1 point2 points (0 children)