Merge pull request #2093 from Violet-Bora-Lee/class-inheritance-suggestion
suggestion to use alert method not console.log
This commit is contained in:
commit
92e9028299
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue