I implemented 2048 game in JS but it lack support for mobile devices because game input is keyboard driven.
To enable mobile devices I have to figure out how touch events is exposed by browser to JS runtime.
"Tower of Hanoi" is a famous task. It has a simple recursive solution.
It's time for some common JS interview questions.