Question: Create a javascript algorithm that takes a random set of baseball players put in by the user, total of 9, and shuffles them to a
Create a javascript algorithm that takes a random set of baseball players put in by the user, total of 9, and shuffles them to a certain position at random. There is one criteria that only certain players that meet the criteria (this being 'yes or no' based off of user input) that the user can play first base, is limited to user input. Then shuffle the rest. 9 positions are
pitcher
catcher
first baseman
second baseman
third baseman
shortstop
left fielder
center fielder
right fielder
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
