I know that it is possible to "freeze" an object in JavaScript using the Object.freeze method:
var x = { foo:"bar", complexo:[1,2,3] };
Object.freeze(x);
x.foo = "baz"; // Não tem efeito
console.log(x.foo); // bar
However, the comple...
asked by
18.02.2014 / 02:09