You just use
const at global scope:
const aGlobalConstant = 42;
That creates a global constant. It is not a property of the global object (because
class don't create properties on the global object), but it is a global constant accessible to all code running within that global environment.