Here are my comments:
Task 1: Correct You could just use = instead of += since you are redefining bulletpoint at the start of every loop.
Task 2: Correct
Task 3: Correct Simplification: You can delete the first half of your loop. This is enough:
Thank you Michael.
As for the 3rd task, I guess I took the line āfor each number that isnāt a prime number, continue on to the next loop iterationā too literally
For those interested, I think I found another way of writing the third loop. Because the line āFor each number that isnāt a prime number, continue on to the next loop iterationā kind of implies that you need to use ācontinueā in the loop. I guess continue is potentially useful if we want to decrease nesting in a loop. The result remains the same as in previous solutions, but the logic is a little bit different.
for (let i = 500; i >= 2; i--) {
if (!isPrime(i)) continue;
para.textContent += `${i} `;
}