Skip to content

Commit 761c80a

Browse files
author
Ovidiu Voicu
committed
Added missing parenthesis in the functional class pattern example
1 parent 5f340d0 commit 761c80a

File tree

1 file changed

+1
-1
lines changed
  • 1-js/07-object-oriented-programming/08-class-patterns

1 file changed

+1
-1
lines changed

1-js/07-object-oriented-programming/08-class-patterns/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The constructor function below can be considered a class according to the defini
2121
```js run
2222
function User(name) {
2323
this.sayHi = function() {
24-
alert(name;
24+
alert(name);
2525
};
2626
}
2727

0 commit comments

Comments
 (0)