title: Is it possible to reassign const variable in javascript
body: <p>Is it possible in JavaScript to reassign const variable;<br/>
  In C++ we can cast variable to and from const, but is it something similar possible in JavaScript;</p>
  
  <p>Here I ask about </p>
  
  <pre><code>const a = 1;
  unconst(a);
  a = "xyz";
  a === "xyz" // true
  </code></pre>
  
  <p>Not object properties reassignments and array push/pop; <br/>
  or</p>
  
  <pre><code>let a = 1;
  const(a);
  a = "xyz"; // error 
  a === 1 // true
  </code></pre>
  
  <p>a is const now, something like Object.freeze for objects</p>