# Assessment wanted for the Loops 3 skill test

**URL:** <https://discourse.mozilla.org/t/assessment-wanted-for-the-loops-3-skill-test/94836>\
**Category:** Learn\
**Tags:** learning, feedback\
**Created:** [March 20, 2022, 6:47pm UTC](https://discourse.mozilla.org/t/assessment-wanted-for-the-loops-3-skill-test/94836 "2022-03-20T18:47:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Halden-Aratro](https://avatars.discourse-cdn.com/v4/letter/h/ec9cab/32.png) [@Halden-Aratro](https://discourse.mozilla.org/u/Halden-Aratro)\
**Post date:** [March 20, 2022, 6:47pm UTC](https://discourse.mozilla.org/t/assessment-wanted-for-the-loops-3-skill-test/94836/1 "2022-03-20T18:47:58Z")

</div>

Hello guys!

Could you tell me whether my bit of code is alright? It runs properly but the style might benefit from pointers.

Here is the link to my code: [Loops3 exercise](https://jsfiddle.net/Halden_Aratro/ctph2nse/1/)

---

<div class="post-metadata">

**Author:** ![mikoMK](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/mikomk/32/50456_2.png) [@mikoMK](https://discourse.mozilla.org/u/mikoMK)\
**Post date:** [March 20, 2022, 6:57pm UTC](https://discourse.mozilla.org/t/assessment-wanted-for-the-loops-3-skill-test/94836/2 "2022-03-20T18:57:48Z")

</div>

Hi @Halden-Aratro and welcome to the community 👋

Congratulations! This looks pretty good. 👏  
There’s one thing which would make the code simpler: Instead of using `if (isPrime(i) === true) {` you could just write `if (isPrime(i)) {`.

Additional question: How could you get rid of the last semicolon after “2”?

I hope that helps. 🙂

Have a nice day,  
Michael
