Skip to content

Instantly share code, notes, and snippets.

View juancarloselorriaga's full-sized avatar

Juan Carlos Elorriaga juancarloselorriaga

View GitHub Profile
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`);