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 Evaluations
developer avatar
Adrien
25/03/2022
There is a mistake in english version that give a false answer
developer avatar
Auteur anonyme
29/03/2022
Hello Adrien, could you be more specific ? Your alternative question seems identical.
developer avatar
Adrien
29/03/2022
Hi, in english version ansewers 3 and 4 are "Adversity is not to be feared There is potentially a real danger" where in frensh answer 3 is "Il y a potentiellement un vrai danger" and 4 is "L’adversitĂ© n’est pas Ă  craindre Il y a potentiellement un vrai danger". As mentionned in my submition, and from my deductions, the 3rd answer should be "There is potentially a real danger". I also removed the loop keyword from the explaination since an if has nothign to do with loops
developer avatar
Auteur anonyme
30/03/2022
Thank you for your help. I validate the new question 🙏