[x] Move the feedback logic to a function an execute it on each click
[x] Move you counter logic into a function and execute it on each click
[x] You are writing many times "trackEl.innerHTML = 'something';", what about making a function that accepts a string as param and paints it into 'trackEl'?
[x] Define a good structure of folders and files for the project
[x] Don't add an empty attribute for no special reason: by adding an empty value attribute we are indeed setting it to a certain (empty) value, do we want to do that?
Then you can improve the game as you please, here you have some ideas:
Add new feedback when the number is bigger than 100 or smaller than 0.
Manage when the user hits the button and the input is empty.
Make the input work when hitting enter key.
Add a reset button that cleans the input, the counter, writes the initial feedback and generates a new random number to play again!
Really cool job @superanika !!!
Here you have some tips to improve the exercise:
value
attribute we are indeed setting it to a certain (empty) value, do we want to do that?Then you can improve the game as you please, here you have some ideas:
Let me know if you have any doubts ;)
Go for it!!