Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
A lawyer with developing technical experience through Georgia Institute of Technology Professional Education coding bootcamp & Harvard Business Analytics Program.
Another cool thing you could do to expand on this would be to break the function out into something reusable like this:
That way the code becomes more resusable and more readable.
Cheers!
Awesome! Thanks, Joel.