Etsy interview question

Coding some things in a JavaScript application.