'use strict';
console.log(document.querySelector('.guess-messadge').textContent);
document.querySelector('.guess-messadge').textContent = 'You right!';
const misteryNum = Math.random(); !!!!!!!!!!!
console.log(misteryNum); !!!!!!!!!!!!
document.querySelector('.check').addEventListener('click', function () {
const guessingNumber = document.querySelector('.number-input').value;
console.log(Number(guessingNumber));
if (!guessingNumber) {
document.querySelector('.guess-messadge').textContent = 'Input a number!';
}
});
-
Вопрос задан
-
43 просмотра