en.javascript.info/1-js/09-classes/01-class/1-rewrite-to-class/task.md

196 B

importance: 5


Rewrite to class

The Clock class (see the sandbox) is written in functional style. Rewrite it in the "class" syntax.

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