Open ytaylordev opened 1 year ago
Really cool job @Nuriacode !!!
Here you have some tips to improve the exercise:
else
.innerHTML
.value
parseInt()
<input>
"trackEl.innerHTML = 'something';"
'trackEl'
===
==
label
for
id
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!!
Do not close this issue until your teacher asks you to
Hi @ytaylordev. I have already changed each tip that you suggest me. Please, check it and let me know if I have to change anything else. Thanks! :)
Really cool job @Nuriacode !!!
Here you have some tips to improve the exercise:
JavaScript: basic
else
statement..innerHTML
or.value
to get DOM content we receive a string. Sometimes we will need to use something likeparseInt()
to convert it to a number: https://github.com/Adalab/modulo-2-evaluacion-intermedia-Nuriacode/blob/d3b03feaf2caf9aa989c1f749db1b7b6f8aab012/js/main.js#L24JavaScript: advanced
<input>
has an empty value or text."trackEl.innerHTML = 'something';"
, what about making a function that accepts a string as param and paints it into'trackEl'
?JavaScript: good practices
===
instead of==
for comparisons: https://github.com/Adalab/modulo-2-evaluacion-intermedia-Nuriacode/blob/d3b03feaf2caf9aa989c1f749db1b7b6f8aab012/js/main.js#L32Good practices
HTML
label
to define the content of the input.for
attribute of the label and theid
of the input.CSS
Further challenges
Then you can improve the game as you please, here you have some ideas:
Call to action
Let me know if you have any doubts ;)
Go for it!!