solutions for test-first-javascript questions