Project Euler #1 - JavaScript
You missed the specification. 


  Find the sum of all the multiples of 3 or 5 below 1000.


You print all of the multiples of 3 or 5 below 1000. To meet the spec, you need to actually sum up all of the elements of ans.