en.javascript.info/1-js/07-object-oriented-programming/10-class-inheritance/2-clock-class-extended/source.view/index.html
Ilya Kantor 97c8f22bbb up
2017-03-21 17:14:05 +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>
let 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>