Created
August 25, 2017 03:49
-
-
Save claudiainbytes/82cec05d352cc61636c972ee62e5bbc2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function hasEnoughPlayers(team){ | |
| return (team.length >= 7) ? true : false; | |
| } | |
| var team = ["Oliver Wood", "Angelina Johnson", "Katie Bell", "Alicia Spinnet", "George Weasley", "Fred Weasley", "Harry Potter"]; | |
| console.log(hasEnoughPlayers(team)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment