Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Returning every third odd number within a user specified range Re: Returning every third odd number within a user specified range

#131091
pixelgrid
Participant

you dont know how big the range will be so storing the array before that its wrong , have a look at this code
http://codepen.io/anon/pen/Gtflb also checks if the input is a number larger than zero