en.javascript.info/1-js/9-object-inheritance/10-class-inheritance/1-clock-class-extended/source.view/index.html
Ilya Kantor 63f55dc65d ok
2016-11-19 00:13:08 +03:00

34 lines
468 B
HTML

<!DOCTYPE HTML>
<html>
<head>
<title>Console clock</title>
</head>
<body>
<!-- source clock -->
<script src="clock.js"></script>
<script>
var clock = new Clock({
template: 'h:m:s'
});
clock.start();
/* Your class should work like this: */
/*
let lowResolutionClock = new ExtendedClock({
template: 'h:m:s',
precision: 10000
});
lowResolutionClock.start();
*/
</script>
</body>
</html>