We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5f407b commit 71874bfCopy full SHA for 71874bf
Entregas/PruebasEntrega/index.js
@@ -35,10 +35,18 @@ class Login {
35
}
36
login (){
37
let x=true; let y=true;
38
+ if(u.usuario===null){
39
+ alert("DEBE REGISTRAR USUARIO");
40
+ u.ingresoDatos();
41
+ }
42
while (x) {
43
console.log(u.usuario);
- let user=prompt("USUARIO: ");
- if (user===u.usuario){
44
+ let user=prompt("INGRESE USUARIO O X PARA MENU: ");
45
+ if(user ==="X" || user==="x"){
46
+ x=false;
47
+ y=false;
48
+ break;
49
+ } else if (user===u.usuario){
50
//alert("Usuario Valido!! /n SIGA SIGA")
51
break;
52
}else {alert("INGRESE USUARIO VALIDO")}
0 commit comments