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
| // 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") |