0

Where is the error?

I can't find the error. In the Admission In Pairs code trainer: "Entry to the club is only allowed in pairs. Take the number of clients in the club as input, and if they all have a pair, send the output to the console "Correct", otherwise, output "Incorrect" ". My code: My code function main () { var numberGuests = parseInt (readLine (), 10) // Your code goes here var even = 2; if (numberGuests% even == 0) { console.log ("Rigth"); } else console.log ("Wrong"); } Results: Test case 1: Wrong // and the explanation is Input: 36 Your output: Rigth //Why is it wrong Output expected: Rigth //It's the same reult Case 2 Rigth // and the explanation is: Input: 23 Your output: Wrong //... Output expected: Wrong Case 2 Wrong // and the explanation is: Input: 24 Your output: Rigth // Why is it wrong Output expected: Rigth // It's the same reult I really can´t see the mistake. Please if someone can help me I would greatly appreciate it

29th Apr 2021, 3:27 PM
HERBY ESTRIPLET
HERBY ESTRIPLET - avatar
2 Respuestas
+ 2
HERBY ESTRIPLET Check spelling of Right.
29th Apr 2021, 3:52 PM
A͢J
A͢J - avatar
+ 1
Maybe if I take a spelling course in English I will advance faster. What a shame ... Thank you very much my good friend
29th Apr 2021, 5:32 PM
HERBY ESTRIPLET
HERBY ESTRIPLET - avatar