Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain the 'export' object #29

Open
danielbachhuber opened this issue Dec 8, 2012 · 2 comments
Open

Explain the 'export' object #29

danielbachhuber opened this issue Dec 8, 2012 · 2 comments

Comments

@danielbachhuber
Copy link

In the section where server.js is turned into a node module, the following is introduced:

exports.start = start;

It would be nice if the exports object was introduced. It's not entirely clear what it does, other than "it just works."

@kunal8411
Copy link

kunal8411 commented Apr 1, 2023

Actually here functions are exported so that other controller's can take advantages of those functions,

instead of writing 'exports.start = start' we can also do this 'export function start'

@kunal8411
Copy link

Please let me know do you need any code change for this.

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

No branches or pull requests

2 participants