Added missing parenthesis in the functional class pattern example

This commit is contained in:
Ovidiu Voicu 2017-03-27 16:37:02 +03:00
parent 5f340d0545
commit 761c80a356

View file

@ -21,7 +21,7 @@ The constructor function below can be considered a class according to the defini
```js run ```js run
function User(name) { function User(name) {
this.sayHi = function() { this.sayHi = function() {
alert(name; alert(name);
}; };
} }