Solutions in Javascript to my Coderbyte challenges