How to write a function that takes an argument and adds it to an array? : <p>I'm trying writing a function that takes an argument the user inputs into the console, adds it to the array and returns it. 
This is my code.</p>

<pre><code>function Album(){
  this.listPhotos=["bee", "ladybug", "caterpillar", "ant"];
  this.addPhoto = function(x){
  listPhotos.push("x");
  console.log (x.listPhotos);
  }
}
</code></pre>
