Skip to content

Commit

Permalink
fix duplicate variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
moshiurse authored Nov 30, 2019
1 parent 6d78ae5 commit 3f0a94f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1046,8 +1046,8 @@ This method is useful if we want to create several similar objects. In the code

// Creating multiple object which have similar property but diff value assigned to object property.
var employee1 = new Employee('John', 'Moto', 24, '5000$');
var employee1 = new Employee('Ryan', 'Jor', 26, '3000$');
var employee1 = new Employee('Andre', 'Salt', 26, '4000$');
var employee2 = new Employee('Ryan', 'Jor', 26, '3000$');
var employee3 = new Employee('Andre', 'Salt', 26, '4000$');
```
#### Method 2: Object Literal
Expand Down

0 comments on commit 3f0a94f

Please sign in to comment.