Answer the question
In order to leave comments, you need to log in
How not to write shitty code? I wrote a Quiz game, I want someone to look at my code (shit code)?
wrote a quiz game (practice), don't know how to evaluate my code, know it's bad, would like to know how bad and how to overcome it? and about the game, it is some kind of brake, when you click, there is some kind of delay for 1 second, then there is a next question
Answer the question
In order to leave comments, you need to log in
A more systematic approach will help you. Learn programming patterns, for example: https://medium.com/better-programming/javascript-d...
In general, the code is quite clean and understandable, it's good that you broke everything into different functions.
Little things:
- Don't use document.write
very easy to google why
- Examine the variables you're confusing with let, var, const
- Use strict comparisons ===
In CSS, don't do this:
*, *::after, *::before {
margin: 0;
padding: 0;
box-sizing: border-box;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question