This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log("I'm Ready!"); | |
| var hacker1 = "Ana"; | |
| console.log("The driver's name is " + hacker1); | |
| var hacker2 = prompt("What's the navigator's name?"); | |
| console.log("The navigator's name is " + hacker2); | |
| if(hacker1.length > hacker2.length){ | |
| console.log("The Driver has the longest name, it has " + hacker1.length + " characters"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var a = new Array(); | |
| var n; | |
| // Crear una función que, al enviarle el número de diapositivas (ej:15), devuelva un array ordenado con ej(15) diapositivas. | |
| function crearPresentacion(){ | |
| for (var i=0; i<=n; i++); | |
| a[i]=i; | |
| return "creado"; |