const Hapi = require('hapi');
const server = Hapi.server({});
Object.defineProperty(global, 'MYCONST', {
value : 37,
writable : false,
configurable: false
});
console.log(MYCONST) //-> 37
MYCONST = 17;
console.log(MYCONST) //-> 37
delete MYCONST
console.log(MYCONST) //-> 37
var colors={
1: 'green',
2: 'blue',
3: 'red'
};
.....
$(this).addClass(colors[$(this).text()]);
var colors = [ ,'green', 'blue', 'red' ]
e.action.call(e) === e.action()
await Promise.all( objs.map( e => e.action() ));