This file contains 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
let hacker1 = 'David'; | |
let hacker2 = window.prompt('Introduce el nombre del pasajero'); | |
let hSize1 = hacker1.length; | |
let hSize2 = hacker2.length; | |
console.log(`The navigator's name is ${hacker2}`); | |
//Conditionals ------------** | |
if(hSize1 > hSize2){ | |
console.log(`Driver has the longest name, it has ${hSize1} characters`); |