You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: js-dom/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@
9
9
Create a `SignupRequest` class in the `accounts.mjs` for creating object when user signs up using the html form.
10
10
11
11
**2. Create a UserAccount class**
12
+
12
13
Define a class `UserAccount` with attributes -- email, name and password.
13
14
14
15
**3. Create a method handleSignupRequest**
@@ -19,5 +20,6 @@ if user with that email already exists then return an object of type
19
20
Response - `new Response(false, 'User already exists with this email')`
20
21
else return `new Response(true, 'You have successfully signed up')`
21
22
22
-
**3. Create a method handleSignup**
23
+
**4. Create a method handleSignup**
24
+
23
25
In the `handleSignup` function in `portfolio.mjs` you need to create the object of type `SignupRequest` with attribute values extracted from the `form` elements and call the `handleSignupRequest` method of `AccountService` object that is already imported in the `portfolio.mjs` file.
0 commit comments