Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /