Skip to content

Commit 3aaf519

Browse files
suggestion to use alert method not console.log
1 parent f830bc5 commit 3aaf519

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/09-classes/02-class-inheritance/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ Here's the demo of a wrong `super` result after copying:
545545
```js run
546546
let animal = {
547547
sayHi() {
548-
console.log(`I'm an animal`);
548+
alert(`I'm an animal`);
549549
}
550550
};
551551
@@ -559,7 +559,7 @@ let rabbit = {
559559
560560
let plant = {
561561
sayHi() {
562-
console.log("I'm a plant");
562+
alert("I'm a plant");
563563
}
564564
};
565565

0 commit comments

Comments
 (0)