Added missing parenthesis in the functional class pattern example
This commit is contained in:
parent
5f340d0545
commit
761c80a356
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue