How do I declare a constant object in JavaScript? For example:
/* meu código */
object_teste = {valor:5}
/* console navegador */
object_teste.valor=10;
console.log(object_teste.valor) // aqui ele me retorna 10 ao invés de 5
How to leave this value constant? As if it were a constant variable but in this case an object.