ES6 - constant

Enable protection for data that must remain the same.

by Rodwyn Moreno

Babel + JSX

const a = 2;
// A constant can not be modified
//a = 3*4;

const array = [1, 2, 3];
array.push(4);
console.log(array);

//array= [];