+ 4

Why do I write so much JS codes?

This could be normal, or something that I just do as a beginner to JS. Especially, when I try to make a simple game, I use a lots of JS to ... mostly to .style.dispaly = "block"; and style.display . "none" / visibility: hidden | visible. For example, immediately when you load in, I'd sometimes have the instructions, then I would add a button to be clicked, so, on click it would be like... instructions.style.display = "none", game.style.display = "block"; if game ended, game.style.display = "none"; options.style.display = "block". Play again.onclick ... ... I don't know if it's just something noobs do or what, but I've noticed myself doing it lately. So based on that, I feel like if I try to make my own website, I'll not be able to finish it, cuz of too much JS, and since I would have about 4+ different pages... hmm, I dunno.

22nd Nov 2019, 2:28 AM
Ginfio
Ginfio - avatar
2 Answers
+ 1
I think that's because you like programming...
29th Nov 2019, 8:10 PM
Justinas Kimtys
Justinas Kimtys - avatar