Created
October 23, 2020 18:18
-
-
Save wedburst/4504605ab5e05487d0f443d4a70b43cb 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 whosPaying(names) { | |
| var names = ["Angela", "Ben", "Jenny", "Michael", "Chloe", "Jhon"]; | |
| var randomItem = names[Math.floor(Math.random() * names.length)]; | |
| return randomItem | |
| } | |
| var pay = whosPaying(); | |
| console.log("Te toca pagar " + pay); | |
| document.body.innerHTML = pay; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment