Skip to content

Commit 1736dde

Browse files
committed
001_modificacion
1 parent 7fb56ae commit 1736dde

File tree

2 files changed

+1
-81
lines changed

2 files changed

+1
-81
lines changed

Entregas/Proyecto/index.js

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
1-
//PRIMERA ENTREGA
2-
//Login basico usando Sentencias IF, IF ELSE y WHILE
3-
let login = true;
4-
while(login){
5-
option = prompt("Opcion: \n 0. Login. \n 1.Salir");
6-
if (option==0){
7-
let user=prompt("Ingrese un Usuario: ");
8-
if (user==""){
9-
alert ("Debe ingresar usuario valido.");
10-
} else {
11-
alert("BIENVENIDO AL SISTEMA "+ user);
12-
login=false;} //Para salir del while
13-
} else if (option==1) {
14-
alert("Vuelva Pronto");
15-
login=false;
16-
} else if (option=="" || option>1) {
17-
prompt("Ingrese Opcion Correcta: \n 0. Login. \n 1.Salir");
18-
}
19-
}
20-
console.log("continua el codigo");
1+
212

223

234

Entregas/PruebasEntrega/index copy.js

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)