Skip to content

wk 1 node ecosystem assignment#11

Open
charlottewest wants to merge 2 commits intopce-uw-jscript400:masterfrom
charlottewest:master
Open

wk 1 node ecosystem assignment#11
charlottewest wants to merge 2 commits intopce-uw-jscript400:masterfrom
charlottewest:master

Conversation

@charlottewest
Copy link

No description provided.

* **Your Answer:**

`module.exports` -
`require` - It's a function that takes a string that is a path to a file.
Copy link
Contributor

Choose a reason for hiding this comment

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

  • module.exports is by default an object. Whatever you assign to it will be what is pulled in when you require() elsewhere.


* **Your Answer:**

We can export both variables as an array
Copy link
Contributor

Choose a reason for hiding this comment

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

This is true, although more typically we'll export it as an object (i.e. {})

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.

2 participants