Javascript 5 (ES5) Object properties - creating a constant value

Oscar Brito

To introduce Object Properties in javascript let's create a constant.

var object = {};
object ,
value : "NoOneCanChangeMe!"

// print NoOneCanChangeMe

// try to set object.static "New Value";

// print NoOneCanChangeMe again

Nice isn't it?

You can see getter's, setter's, enumeration's  configuations on:

Visit for more informations, contacts and news about Web Development.
See other blog posts at

Divhide purpose is to follow the HTML5 movement and contribute with applications which prove the quality of technology.

Feel free to contact divhide.