Hi I am a newbie from Germany and trying to get through this coding puzzle. I just wanted to know if anybody could tell me why in my code console.log gives me the whole function instead of only the return answer
function basketballPlayers(fouls) { if (fouls == 5) { return "4 players" } else if(fouls <= 5) return "5 players" }
I want to say 5 fouls equal 4 players lesser than 5 fouls equal 4 players Im a newbie so dont mind my simple code
Aucun commentaire:
Enregistrer un commentaire