Back to the lesson

Rewrite to class

importance: 5

Rewrite the Clock class from prototypes to the modern “class” syntax.

P.S. The clock ticks in the console, open it to see.

Open a sandbox for the task.