constHi rocks, Sasha here. Today we gonna see some alternatives to 
constconst
As mentioned above, 
constletMutability
The fact that it is constant doesn't mean it is immutable. It's a common misconception, but 
any const object can change its propertiesany const array can change its data//const object example
//declare a const object with id and msg
const a = {
    id: 5,
    msg: "Hello!"
}
//change property of constant object
a.msg = "Hi!";//c changes it's value
//reasign constant object
a = { msg: "new object!" };//TypeError: Assignment to constant variable.//const array example
//declare const array
const arr = [ "Hello", "Constant" ];
//push new element to array
arr.push("works");          //push new element - ok
//change first element in array
arr[0] = "Hi!";             //change first element - ok
//reasign to new array
arr = [ "New", "Array" ];   //change reference - TypeError: Assignment to constant variable.//primitive const value
//declare consatnt string
const message = "Constant string";
message = "New constant string";//change value - TypeError: Assignment to constant variable.To sum up: 
constconst before ES6
So, how do you declare a constant value using standards previous to ES6? 
You don'tALL_CAPS//declare constant values names
var ONE = "ONE";
var TWO = "TWO";
//create a repositpory for them
var ConstValues = (function() {
    //(function(){})() creates a scoped function.
    //only get method is visible from outside, so no one can
    //change data
    var data = {};
    
    //create two constant values
    data[ONE] = "uno";
    data[TWO] = "due";
    //everything inside return will be visible outside
    return {
       get: function(name) { return data[name]; }
   };
})();
//get constant value
var two = ConstValues.get(TWO);//due
//change constant value
ConstValues.data[TWO] = "dos";//TypeError: Cannot set property 'TWO' of undefined
//ConstValue.data is not visible here! (so you cannot change its properties)Charming, yeah.
You can also use functions that always return the same value:
//declare constant values as function
function CONST_VALUE(){
    return "constant_value";
}
CONST_VALUE();//"constant_value"
//function to create a function that returns a constant value
function constant(value){
    return function(){
        return value;
    }
}
var a = constant(5);
a();//5Conclusion
There were hard times for javascript developers.
In this article, we've learned the basics of 
constP.S.
You should always use 
const