Skip to content

Class notes#14

Open
drubini90 wants to merge 1 commit intopce-uw-jscript400:masterfrom
drubini90:master
Open

Class notes#14
drubini90 wants to merge 1 commit intopce-uw-jscript400:masterfrom
drubini90:master

Conversation

@drubini90
Copy link

No description provided.

* **Your Answer:**
Hello, Node!
Rubini
The file profile.js is logged in the console.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be more precise, whatever it is you've exported gets logged. It's not necessarily the entire file. This becomes more important when you have multiple functions in a file.

* **Your Answer:**

---
---No. It depends on the where the file or folder is placed inside the package.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This question is asking about why you wouldn't do the following:

const moment = require('./moment')

So, in this case you do not do the above because you do not have a file called moment, but a package you've installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants