Skip to content

Commit 25e9b5d

Browse files
committed
Class Example01
1 parent 5ccf7a8 commit 25e9b5d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

classes/chapter-examples/ClassExamples01.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ let fox = new Astronaut('Fox', 7, 12);
1212
console.log(fox);
1313
console.log(fox.age, fox.color);
1414

15-
fox.age = 9;
16-
fox.color = 'red';
15+
Astronaut.age = 9;
16+
Astronaut.color = 'red';
1717

1818
console.log(fox);
1919
console.log(fox.age, fox.color);

0 commit comments

Comments
 (0)