Skip to content

Commit eb47bc5

Browse files
I created a new branch for sprint 3 repo 1 implement and creat testes
1 parent 2b00771 commit eb47bc5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sprint-3/4-stretch/password-validator.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
function passwordValidator(password) {
2-
return password.length < 5 ? false : true
2+
if (password.length< 8)
3+
4+
{return 'Password must be at least 8 characters long'};
5+
36
}
47

58

0 commit comments

Comments
 (0)