You'll be creating a progam which helps you build a team of a variable size.
take the number of people in the team as a command line argument
ensure the number of people is an integer, between 2 and 6 inclusive, otherwise show the error Usage: bun team.js [num_people_in_team]
show the message You are building a team of [n] people
for each member of the team, ask the user for their name with Team member [m] of [n]:
once all names are entered, show the message eg Your team members are: Dave, Amy, George
then show the message eg Your 3 team members have 19 characters in their names (avg 6.3)
... the mean average in the above should always show 1 decimal place of precision
Here is a sample interactive session with a working program:
❯ bun team.js
Usage: bun team.js [num_people_in_team]
❯ bun team.js andy
Usage: bun team.js [num_people_in_team]
❯ bun team.js 3.4
Usage: bun team.js [num_people_in_team]
❯ bun team.js 8
Usage: bun team.js [num_people_in_team]
❯ bun team.js 3
You are building a team of 3 people
Team members 1 of 3: Benji
Team members 2 of 3: Zia
Team members 3 of 3: Alice
Your team members are: Benji, Zia, Alice
Your 3 team members have 13 characters in their names (average 4.3)
look over both the arrays and command line arguments guides
5.1351.toFixed(2) gives 5.14 (and toPrecision() is a similar method)