title: Create a new array inside of an instance. Javascript
body: <p>I was trying to create a constructor and inside of that create a new array, I am implementing inside some methods.<br>My question is what would be the appropriated way of implementing a method inside of an constructor that has an array.</p>
  
  <p>This is my sample of the code:</p>
  
  <pre><code>function Solution(){
      var queue = new Array();
  }
  
  var sol1 = new Solution();
  console.log(sol1.queue);
  </code></pre>
  
  <p>When I accessed to the array it says undefined. So basically how can I use that array outside of the constructor?</p>