text: "use strict";console.log(">> Ready :)");const inputNumber=document.querySelector(".js-input"),inputButton=document.querySelector(".js-button"),trackInfo=document.querySelector(".js-track"),triedNumber=document.querySelector(".js-tried"),bodyBack=document.querySelector(".js-body");function getRandomNumber(e){return Math.ceil(Math.random()*e)}const randomNumber=getRandomNumber(100);function compareNumber(){const e=parseInt(inputNumber.value);console.log(e,randomNumber),e===randomNumber?(trackInfo.innerHTML="Enhorabuena!! has ganado! =) ¡recarga la página y juega otra vez!",inputButton.setAttribute("disabled",!1),inputButton.classList.add("colordisable"),bodyBack.classList.add("colorback"),trackInfo.classList.add("colortext")):e>randomNumber&&e<=100?trackInfo.innerHTML="WOW, ¡te has pasado!":e<randomNumber&&e>=0?trackInfo.innerHTML="¡te has quedado corta!":(e>100||e<0)&&(trackInfo.innerHTML="escoge un número de 0 a 100 ;)")}console.log(randomNumber);let counter=0;function clickNumber(){counter+=1,triedNumber.innerHTML="Número de intentos: "+counter}function clickAndCompare(){clickNumber(),compareNumber()}inputButton.addEventListener("click",clickAndCompare);