This was a challenge for the advanced Frontend Web Development Javascript in Freecodecamp
You should create a clock for focusing on your study following the pomodoro "technique". After 25 minutes study, it automatically starts a 5 minutes break. After you start the clock, you can stop it and reset it!
https://en.wikipedia.org/wiki/Pomodoro_Technique
On codepen, you can actually have a preview of how it works https://codepen.io/AndreusSH/pen/PEpXEJ