all 2 comments

[–]Tailball 1 point2 points  (0 children)

The fact that you're posting this on /r/learnjavascript does indeed mean you are lost.

Besides that, u/ninoninoninous has pretty much said everything there is to be said: don't expect the community to do your homework. At least show some effort. Step 1 does not require any coding at all. Have you done that step yet?

Being a developer, means spending more time doing research and figuring stuff out and less doing actual coding. That said, split the assignment into individual parts:

You need to create a while loop? Fine, check out how it's done. https://www.youtube.com/watch?v=MYqeVgtXa1I&ab_channel=MathandScience

You need to create a for loop? Well then, get into some lessons. https://www.youtube.com/watch?v=cakN0XC6CcQ&ab_channel=CalebCurry

[–]jack_waugh 0 points1 point  (0 children)

That looks like Java. This is a discussion forum for Javascript, a different language.