Is there an efficiency difference between const vs var while ‘requiring’ a module in NodeJS [closed]

The const makes perfect sense here:

  • It documents that the object reference is not going to change.
  • It has block scope (same as let) which also makes sense.

Other than that it comes down to personal preference (using var, let or const)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)