Skip to content

Instantly share code, notes, and snippets.

// Thibaut Davoult & Jad Challita
var hacker1 = 'Jad'; //Driver
console.log("The driver's name is " + hacker1);
var hacker2 = prompt("What is the navigator's name?"); //Navigator
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")