suggestion to use alert method not console.log

This commit is contained in:
Violet Bora Lee 2020-08-30 19:53:28 +09:00
parent f830bc5d94
commit 3aaf519ca2

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");
}
};