"use strict";
// Variables
const userNumber = +prompt(`Type a number between 1 to 10: `);
const secretNumber = 3;
// Logic
console.log(userNumber);
console.log(secretNumber);
if (userNumber === secretNumber) {
// user put the correct value
alert(`You got it! => ${userNumber} was the secret number`);
} else {
// user put the wrong value
alert(`Wrong number! `);
}
pd: yo acostumbro a programar en ingles