title: Javascript: Questions about using "Const," for lists and objects
body: <p>Naturally I assumed the "const," keyword meant the value of a variable could not change, and when it comes to integers and strings that seems to be the case. However, today I was watching a video and somebody type the following</p>
  
  <pre><code>const my_list = [];
  
  my_list.push(someValue);
  </code></pre>
  
  <p>I was surprised to find out that this kind of code actually works, as I was under the assumption that the list would be constant. So my question is: Why? What advantage does declaring the list as constant have if you are just going to change it anyways?</p>