Skip to content

Commit 2051a20

Browse files
committed
update creation script to provide person id via constructor
1 parent 92b8007 commit 2051a20

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/caller.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Person } from './person';
22

3-
const kaio = new Person();
4-
kaio.id = 1;
3+
const kaio = new Person(1);
54
kaio.name = 'Kaio';

0 commit comments

Comments
 (0)