Why my code does not work :( i have been looking at it for an hour and there seems no wrong and it should work fine?

function canIVote(age) {

if (age >= 18) { return ‘no’ };

else (age < 18) { return ‘yes’};



else can’t have a condition, given its everything else.

1 Like

Omg, thank you! i just realized right now that is kind of redundant. Therefore the else does
not necessarily need a conndition.