Closed davidbarsky closed 8 years ago
While I agree that const should be used for such references, as the variable will never be changed, I'm worried that all of the examples in the NodeJS documentation use the old var declaration. I think it might be confusing.
const
var
fair enough. i'll open a new pull request with the comments explaining const usage.
While I agree that
const
should be used for such references, as the variable will never be changed, I'm worried that all of the examples in the NodeJS documentation use the oldvar
declaration. I think it might be confusing.