Tell us what’s happening:
Step 75
You’ll show the animation when users try to convert the decimal number 5 to binary, so you’ll need to add a check for that within your checkUserInput() function.
Use an if statement to check if the value attribute of numberInput is equal to the number 5. Remember to use the parseInt() function to convert the string into a number before comparing it to 5. Leave the if statement empty for now.
I do not understand step 75
Your code so far
<!-- file: index.html -->
/* file: script.js */
// User Editable Region
function checkUserInput() {
let numberInput = document.getElementById('numberInput');
if (parseInt(numberInput.value) === 5) {
}
if (=== 5) {
}
}
// User Editable Region
/* file: styles.css */
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Challenge Information:
Learn Recursion by Building a Decimal to Binary Converter - Step 75