title: Javascript | Set all values of an array
body: <p><strong>Code</strong></p>
  
  <pre><code>var cool = new Array(3);
  cool[setAll] = 42; //cool[setAll] is just a pseudo selector..
  alert(cool);
  </code></pre>
  
  <p><strong>Result</strong></p>
  
  <p>A alert message:</p>
  
  <pre><code>42,42,42
  </code></pre>
  
  <p>How do I change/set all values of an array to a specific value? </p>