Skip to content

Commit

Permalink
Merge pull request #86 from opencodebd/master
Browse files Browse the repository at this point in the history
fix duplicate variable name
  • Loading branch information
ganqqwerty authored Feb 19, 2020
2 parents a240ce7 + 3f0a94f commit be8fef7
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 be8fef7

Please sign in to comment.