Assessment wanted for JS test - Arrays 3 & 4

Hi! I’d appreciate if I could have an assessment of my work on Test Your Skills - Arrays 3 & 4.

Arrays 3 was so difficult that I almost gave up :sob:
I assumed I should use forEach(), but unfortunately I couldn’t really understand the MDN page…

…so I kind of copied the W3schools’ page’s example.

Will it be easier to understand forEach() once I properly learn about functions? :cry:

Arrays 3

Arrays 4

Test page

Hi @Risa

You are right. This task is tricky, because we don’t know much about loops and functions, yet. Those things are often used together, but we can only teach one thing after the other. :slightly_smiling_face: I’m sure everything will get clearer when you’ve worked through those lessons.
It was a great idea to look it up somewhere else and then adapt the example. That’s something you will do often when working on a (real) project and this is how we finally get better. The important thing is that we try to understand the code we use from somewhere else.

Generally, you can always come here and ask, if you’re stuck with a task. We gladly give you some hints/explanations to get you further.

That being said, I’m sure you’re relieved to hear that both tasks are correctly solved. :sweat_smile:

Cheerio,
Michael

1 Like

Hi @mikoMK,

Thank you so much for encouraging words!
Yes, I am relieved to know I did both tasks correctly :sweat_smile:

Once I learn more about loop and functions, I will try again to really understand forEach() ! :blush:

1 Like

I’m sure you will! There are a few more array function that also work through all elements like forEach(). Once you understand the concept they are a really cool way to work with arrays.

1 Like

Thank you @mikoMK!

Sounds exciting, looking forward to leaning about them :blush:

1 Like