Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
He/Him/His
I'm a Software Engineer and a teacher.
There's no feeling quite like the one you get when you watch someone's eyes light up learning something they didn't know.
extract
isOdd
out and you can now reuse it elsewhere. It also improves the readability of thefor
loop.isOdd
should not need to be a functionRuby has it as a function 😉
ruby-doc.org/core-1.8.7/Integer.ht...
ruby-doc.org/core-1.8.7/Integer.ht...