From the docs:
The const declaration creates a read-only reference to a value. It
does not mean the value it holds is immutable, just that the variable
identifier cannot be reassigned. For instance, in case the content is
an object, this means the object itself can still be altered.
This isn't node-specific, it is part of the Javascript spec. The reference EXPRESS
is the constant, and when you declare using const
you are not allowed to reassign the reference.
const EXPRESS = require('express');
EXPRESS = 'something else';
would also fail