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

var and const #43

Open
emilyb7 opened this issue Mar 31, 2017 · 1 comment
Open

var and const #43

emilyb7 opened this issue Mar 31, 2017 · 1 comment
Assignees

Comments

@emilyb7
Copy link

emilyb7 commented Mar 31, 2017

in index.js

const http = require('http');
const router = require('./router.js');

const port = process.env.PORT || 3000;

var server = http.createServer(router);

server can be const too!

@emilyb7
Copy link
Author

emilyb7 commented Mar 31, 2017

same for router!!

@RQ16 RQ16 self-assigned this Mar 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants