Created
April 5, 2017 00:33
-
-
Save appkr/ec41138054bf2a9da8eacb6945429412 to your computer and use it in GitHub Desktop.
lotto
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
const ball = ['foo', 'bar', 'baz', 'qux']; | |
const roll = (ball) => ball[Math.floor(Math.random() * ball.length)]; | |
// console.log(`당첨자는 "${roll(ball)}" 님입니다. 축합니다.`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment