Simply put, the answer is no. Const in JavaScript is block scoped, meaning it is only available within the block in which it is declared. If you're looking to make something immutable, it's not difficult to achieve. However, this question suggests a possible lack of knowledge on the topic. A more useful approach may be learning how to deep freeze an object, preventing any additions, deletions, or changes. Keep in mind that deep freezing can present challenges if you need to make changes further down the object structure.
Refer to MDN for more information:
var obj = {
prop: function() {},
foo: 'bar'
};
// Making changes to frozen objects will fail
obj.foo = 'baz';
obj.lumpy = 'woof';
delete obj.prop;
var o = Object.freeze(obj);
o === obj; // true
Object.isFrozen(obj); // true
obj.foo = 'quux'; // no effect
obj.quaxxor = 'the friendly duck';
function fail(){
'use strict';
obj.foo = 'sparky'; // throws TypeError
delete obj.quaxxor; // throws TypeError
obj.sparky = 'arf'; // throws TypeError
}
fail();
Object.defineProperty(obj, 'ohai', { value: 17 }); // throws TypeError
Object.defineProperty(obj, 'foo', { value: 'eit' }); // throws TypeError
Object.setPrototypeOf(obj, { x: 20 }) // throws TypeError
obj.__proto__ = { x: 20 } // throws TypeError