Trying to do something simple, but not sure what I am doing wrong.
I simply want to call a function with number arguments and push those numbers into a new array...
function someFunction(n){
  var newArray = new Array(n);
  for(var i=0; i < n.length; i++){
    newArray += n[i];
  }
  return newArray;
}
console.log(someFunction(3,5,4,5));Here is bin
 
     
     
     
    