srojasz / evaluacion-intermedia-modulo-2-srojasz

evaluacion-intermedia-modulo-2-srojasz created by GitHub Classroom
http://beta.adalab.es/evaluacion-intermedia-modulo-2-srojasz/.
0 stars 0 forks source link

Improvements #1

Closed migueldelmazo closed 4 years ago

migueldelmazo commented 4 years ago

Really cool job @srojasz !!!

Here you have some tips to improve the exercise:

JavaScript: basic

JavaScript: good practices

HTML

Steps to finish the game (for those far from the solution)

You are close to the exercise solution, but here you have a steps guide to complete it anyway ;)

  1. Save a reference to DOM elements in variables.
  2. Generate the random number and save it to a variable.
  3. Init counter of trials to 0.
  4. Define a function that executes when the user clicks on the button, that
  1. Assign a listener to the button click to execute the previous function.

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!!

srojasz commented 4 years ago

@migueldelmazo ya he corregido los errores, lo de mejorarlo... para después de la evaluación, ¿vale? :) Graaacias

migueldelmazo commented 4 years ago

Fetén, le he echado un ojo y tiene muy buena pinta!!!