Assessment request for Loops 1 Skill Test

Hi. Any assessment would be appreciated. Thank you and have a good day! :elephant:

loops1
loops2
loops3

Hello again @harryghgim!

So for answer 1, your answer is really good, and the logic is perfect. The only trouble is that the question asks you to print each value out in a list item. So for each one, you’d want to create a new <li> element, add the array item to it as text content, and append the <li> to the given <ul> element. See our answer here: https://github.com/mdn/learning-area/blob/master/javascript/building-blocks/tasks/loops/marking.md#task-1

Answer 2 is really good, works fine. It would be even better if you added an else clause to comunicate that a name isn’t found in the phone book. That would also involve using the break statement to break out of the loop when the name ahs been found. See our answer: https://github.com/mdn/learning-area/blob/master/javascript/building-blocks/tasks/loops/marking.md#task-2

For answer 3, this is a great answer, even better than the one I had. I’ve updated our marking guide to use your answer. Well done!

1 Like