Created
December 30, 2019 19:54
-
-
Save slimani-dev/dffc0b40a2bf2fbfe77825876b663d44 to your computer and use it in GitHub Desktop.
This file contains 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 flip() { | |
let x = Math.floor(Math.random() * 2) | |
if(x = 1) { | |
return "heads" | |
} else { | |
return "tails" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment