Hi!
Any feedback on my loops skill test would be much appreciated
The problems are found here:
My codepens are as follows:
Loops 1: https://codepen.io/saskiabt/pen/dyJjdzd
Loops 2:
Loops 3:
Hi!
Any feedback on my loops skill test would be much appreciated
The problems are found here:
My codepens are as follows:
Loops 1: https://codepen.io/saskiabt/pen/dyJjdzd
Loops 2:
Loops 3:
Hi @sskbinder
Welcome back! Here are my comments:
<li>
. It should look something like this:if
condition. Can you spot it?Please ask if you need more help.
Happy coding,
Michael
Thank you!
I realized the problem for #2 - I used = (assignment) instead of === (strict equivalency) in the if… loop. Should work properly now.
Thanks this was super helpful!!
Great improvements, @sskbinder!
You could even make task 1 simpler: You add a comma in the template string and then remove it on the next line. You could just write
bullet.textContent = myArray[i];
and remove the next line. No need for a template string at all.
Task 2 is perfect now!