let numeroSecreto=7;
let palpite=3;
let tentativas=1;
while(palpite!==numeroSecreto){
console.log(`Palpite ${palpite}`);
tentativas++
palpite++;
}
console.log("Você acertou!");
console.log("tentativas: "+tentativas);
To embed this project on your website, copy the following code and paste it into your website's HTML: