These are assignments:
This solution:
1.Loops 1 - JSFiddle - Code Playground
2. Loops 2 - JSFiddle - Code Playground
3. Loops 3 - JSFiddle - Code Playground
These are assignments:
This solution:
1.Loops 1 - JSFiddle - Code Playground
2. Loops 2 - JSFiddle - Code Playground
3. Loops 3 - JSFiddle - Code Playground
Hi @Svitcher
Wow, already the next tests finished! Let’s get to work…
All three outputs are correct! Congratulations
Two questions about “Loops 3”:
i--
at the start of the loop. If i=499
(instead of 500) how could you change the code to also test the first number and output this prime?5,3,2,
How could you prevent the trailing comma?If you like to you can update your Loops 3 fiddle to solve these questions.
Have a nice day!
Michael
Hello! Thank you very much for your attention . I have updated the code. The new link is here:
https://jsfiddle.net/Svitcher/sz26uhja/30/
Cool! Now everything is fine.
Nice idea with the slice at the end
Michael
Thank you very much!
Nataliia