Hi all, I believe I have replaced all instances of parseInt(numberInput.value)
with inputInt
, but when I try to submit my code, it doesn’t give any feedback (not even a “you did this wrong, here’s a hint”.
Here is the code I have written:
const inputInt = parseInt(numberInput.value);
if (!numberInput.value || isNaN(inputInt) {
alert("Please provide a decimal number");
return;
}
if (inputInt === 5) {
showAnimation();
return;
}
result.textContent = decimalToBinary(inputInt);
numberInput.value = "";