Skip to content

Commit 386ced4

Browse files
Fix
1 parent b3e867a commit 386ced4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pattern/factory-pattern.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ var seat = myPartFactory.createPart( {
3737
isReclinable : false
3838
} );
3939

40-
// create a door with deault option
40+
// create a door with default option
4141
var door = myPartFactory.createPart({partType:'door'});
4242

43+
4344
console.log( seat instanceof CarSeat ); // logs 'true
4445

4546
//logs a CarSeat object with material "leather", color "blue", isReclinable "false"

0 commit comments

Comments
 (0)