This commit is contained in:
Ilya Kantor 2020-03-22 11:06:42 +03:00
parent d2ac997f1c
commit 6ec3f34e2b
2 changed files with 3 additions and 4 deletions

View file

@ -1,7 +1,7 @@
class ExtendedClock extends Clock {
constructor(options) {
super(options);
let { precision=1000 } = options;
let { precision = 1000 } = options;
this.precision = precision;
}

View file

@ -1,4 +1,4 @@
importance: 5
importance: 3
---
@ -32,12 +32,11 @@ Here's an example of such code (it doesn't work -- why? fix it?):
```js
class Rabbit extends Object {
constructor(name) {
super();
this.name = name;
}
}
let rabbit = new Rabbit("Rab");
alert( rabbit.hasOwnProperty('name') ); // true
alert( rabbit.hasOwnProperty('name') ); // Error
```