Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d333e12

Browse files
committed
Fix method chaining subsection typo
1 parent d28b1e3 commit d333e12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ class Car {
15101510
}
15111511

15121512
setMake(make) {
1513-
this.name = name;
1513+
this.make = make;
15141514
}
15151515

15161516
setModel(model) {
@@ -1543,7 +1543,7 @@ class Car {
15431543
}
15441544

15451545
setMake(make) {
1546-
this.name = name;
1546+
this.make = make;
15471547
// NOTE: Returning this for chaining
15481548
return this;
15491549
}

0 commit comments

Comments
 (0)