Skip to content

Commit 1345509

Browse files
authored
Update solution.md
1 parent bd691f5 commit 1345509

File tree

1 file changed

+11
-11
lines changed
  • 1-js/02-first-steps/11-logical-operators/9-check-login

1 file changed

+11
-11
lines changed

1-js/02-first-steps/11-logical-operators/9-check-login/solution.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
let userName = prompt("Quién está ahí?", "");
55

66
if (userName == "Admin") {
7+
8+
let pass = prompt("Contraseña?", "");
79

8-
let pass = prompt("Contraseña?", "");
9-
10-
if (pass == "TheMaster") {
11-
alert( "Bienvenido!" );
12-
} else if (pass == "" || pass == null) {
13-
alert( "Cancelado." );
14-
} else {
15-
alert( "Contraseña incorrecta" );
16-
}
10+
if (pass == "TheMaster") {
11+
alert( "Bienvenido!" );
12+
} else if (pass == "" || pass == null) {
13+
alert( "Cancelado." );
14+
} else {
15+
alert( "Contraseña incorrecta" );
16+
}
1717

1818
} else if (userName == "" || userName == null) {
19-
alert( "Canceledo" );
19+
alert( "Canceledo" );
2020
} else {
21-
alert( "No te conozco" );
21+
alert( "No te conozco" );
2222
}
2323
```
2424

0 commit comments

Comments
 (0)