let numeroSecreto = generaNumeroSecreto(); let numeroMaxPosible = 10; let numeroUsuario = 0; let intentos = 1;
console.log(numeroSecreto);
function asignarTextoElemento(elemento, texto){ let elementoHTML =document.querySelector(elemento); elementoHTML.innerHTML= texto; }
function verificaIntento(){ alert('click desde el boton') return; }
function generaNumeroSecreto(){ return Math.floor(Math.random()*10)+1; }
asignarTextoElemento("h1","Juego del número secreto!"); asignarTextoElemento("p","Indica un numero del 1 al 100");