for loop II - looping through an array

Our second for-loop exercise shows how you can use a loop to iterate over the elements of an array. In this example, we will filter numbers from an existing array. The loop iterates over each element of the array mixed. If the current element is of type number, it will append it to the array newArray.
To solve this task, complete the loop expressions inside the brackets.
Get a premium membership to access this content: