Question from the Javascript - Fundamentals test

Archived

What does the following code display?

let connectedPlayer = true; 
let strongPlayer = false; 
if (connectedPlayer && strongPlayer) { 
    console.log("Adversity is harsh\n"); 
} else if (connectedPlayer &&  !strongPlayer) {
     console.log("Adversity is not to be feared\n"); 
} if (connectedPlayer || strongPlayer) { 
    console.log("There is potentially a real danger\n"); 
} 
Author: KahinaStatus: Archived(New question!)Question passed 59 times
-1
Community EvaluationsNo one has reviewed this question yet, be the first!