Assessment needed for JS Functions Task 3

I am having trouble with Task 3 for JavaScript Functions

I need a bit of guidance to get on the right track.

Here is my CodePen

Hello @kgirl89

you doing great

just you forget a little thing
para.textContent = random(names.length);

random return the index of the postion in the array not the array element

so you need to do little edit para.textContent = names[random(names.length)];

hope that help and have a nice day :slight_smile:

This worked! Thank you

you welcome :slight_smile: