Rock, Paper, Scissors game coded in javascript