Challenge: Filling Array with Loop Counter

This lesson brings you a challenge to solve.

We'll cover the following

Problem statement

Write a loop that fills an array with the loop-counter (from 0 to 14), and then print that array to the screen.

Output

Array filled with values from 0 to 14

[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14] // filled array

Try to implement the function below. Good luck!

Get hands-on with 1200+ tech skills courses.