const speakEnglish = Boolean(prompt("Does this country speak English?"));
const fiftyMill = Boolean(prompt("Is the country below 50 million population?"));
const island = Boolean(prompt("Is the country an island?"));
if (speakEnglish && fiftyMill && island) {
console.log("Sarah can live in this country.");
} else {
console.log("Sarah will look for another country.");
}
I'm trying to get the else-statement to fire, but even after entering false into the prompt, the if-statement fires.