Running the code shows the digital portion working.
But the hands for the analog portion don't update to reflect the updating time of the digital display.
clock.jsx should be as follows as AnalogDisplay is expecting a date object to determine hour, minute, second; whereas DigitalDisplay is expecting date.toLocaleString():
Running the code shows the digital portion working. But the hands for the analog portion don't update to reflect the updating time of the digital display.