const vs let when calling require
As io.js now supports ES6 you are finally able to use the const and let keywords. Obviously, let is the successor of var , just with some super-powers. But what about const ? I know, of course, what "constant" means, but I was wondering when to use it (regarding best practices). E.g., if I create a module that requires another module, I could write: 'use strict'; const util = require('util'); const foo = function () { // Do something with util }; module.exports = foo; Basically I've replaced every occurence of var with const . Generally speaking, I think that this is okay, but if I follow this