Created
January 4, 2016 17:57
-
-
Save anonymous/9d32881c40ac88c3ca9d to your computer and use it in GitHub Desktop.
JS Bin [add your bin description] // source https://jsbin.com/gezohi
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="[add your bin description]"> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> | |
| students = ["Nasif", "Asraf", "Habib", "Juan" ]; | |
| function pick_random_student(students) { | |
| next_victim = students[Math.floor(Math.random() * students.length)]; | |
| return next_victim | |
| } | |
| </script> | |
| <script id="jsbin-source-javascript" type="text/javascript">students = ["Nasif", "Asraf", "Habib", "Juan" ]; | |
| function pick_random_student(students) { | |
| next_victim = students[Math.floor(Math.random() * students.length)]; | |
| return next_victim | |
| } | |
| </script></body> | |
| </html> |
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
| students = ["Nasif", "Asraf", "Habib", "Juan" ]; | |
| function pick_random_student(students) { | |
| next_victim = students[Math.floor(Math.random() * students.length)]; | |
| return next_victim | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment