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.
2 parents d16fb05 + 6410140 commit 63e1268Copy full SHA for 63e1268
1-js/02-first-steps/10-ifelse/4-check-login/solution.md
@@ -9,13 +9,13 @@ if (userName == 'Admin') {
9
10
if (pass == 'TheMaster') {
11
alert( 'Welcome!' );
12
- } else if (pass == null) {
+ } else if (pass == '' || pass == null) {
13
alert( 'Canceled.' );
14
} else {
15
alert( 'Wrong password' );
16
}
17
18
-} else if (userName == null) {
+} else if (userName == '' || userName == null) {
19
alert( 'Canceled' );
20
21
alert( "I don't know you" );
0 commit comments