Merge pull request #2093 from Violet-Bora-Lee/class-inheritance-suggestion

suggestion to use alert method not console.log
This commit is contained in:
Ilya Kantor 2020-09-05 17:00:03 +03:00 committed by GitHub
commit 92e9028299
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -545,7 +545,7 @@ Here's the demo of a wrong `super` result after copying:
```js run
let animal = {
sayHi() {
console.log(`I'm an animal`);
alert(`I'm an animal`);
}
};
@ -559,7 +559,7 @@ let rabbit = {
let plant = {
sayHi() {
console.log("I'm a plant");
alert("I'm a plant");
}
};