how to make a variable read only in javascript code example
Example 1: javascript set readonly property
document.getElementById('InputFieldID').readOnly = true;
Example 2: make object readonly javascript
var obj = {};
Object.defineProperty(obj, "prop", {
value: "test",
writable: false
});