Skip to content

Commit dafa78e

Browse files
committed
Set up User class and it's constructor in class.js
1 parent 5599d82 commit dafa78e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎src/class.js‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99

1010
// code here
1111

12+
class User {
13+
constructor(options) {
14+
this.email = options.email;
15+
this.password = options.password;
16+
}
17+
}
18+
1219
// Part 2
1320
// Create a class called `Animal` and a class called `Cat` using ES6 classes.
1421
// `Cat` should extend the `Animal` class.

0 commit comments

Comments
 (0)