CJCoding With Joseph
15free / daySign inCreate account

Use forEach to print each student name with the prefix "Student: ".

forEach runs a function once for each item in an array.

Array: ['Ava', 'Liam', 'Noah']

Steps: 1. Use the provided students array 2. Call forEach on the array 3. Print each name with the required prefix

Expected output

Student: Ava
Student: Liam
Student: Noah

= newline. The output ends with a newline, so print one after the last line.

Hints2 available
Topics
LoopsArraysforEach
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (clog, fn, fori)

Your output

Run your code to see the output here...

Test cases

Run your code to see test case results.