Task 8 of 9 · 0 solved · 9 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

5.1 Arrays — fill the array of names

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Fill in makeNames so that it returns an array of n strings, every slot holding value.

Creating the array is not enough — a fresh array of objects is full of null. The program prints empty, empty, 0.

Your solution