Answers to various coding challenges, written in JavaScript