While this works, and it totally does, it's not optimal.
Hardcoding a line for each name works, but it's a lot of repetitive code. Using a for loop is a much better solution. Imagine if our array had 104 names in it instead of 4, building it this way would get pretty tiresome.
While this works, and it totally does, it's not optimal.
Hardcoding a line for each name works, but it's a lot of repetitive code. Using a for loop is a much better solution. Imagine if our array had 104 names in it instead of 4, building it this way would get pretty tiresome.