We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 376a16e commit f270478Copy full SHA for f270478
lesson_07/conditionals/src/part_c.ts
@@ -6,7 +6,23 @@
6
* @returns
7
*/
8
export function isStrongPassword(password: string): boolean {
9
+ if (password.length < 8) {
10
+
11
+ return false;
12
+}
13
+ if (!/[A-Z]/.test(password)) {
14
15
16
+ }
17
+ if (!/[0-9]/.test(password)) {
18
19
return false;
20
21
22
+ if (password.length >= 8 ){
23
24
+ return true;
25
26
}
27
28
/**
0 commit comments