let userInput = prompt('Please enter a number');
let userNumber = parseInt(userInput);
let remainder = userNumber % 18;
if (userNumber > 18) {
console.log('You are old enough to drive!');
} else if (userNumber < 18 && userNumber % 18 !== 0) {
console.log(`Not yet, ${remainder} more years until you can drive.`);
}
If the input is above 18, it will display 'You can drive'. If the input is below 18, it will show how many years left until they reach 18 and can drive. I need help with finding the solution for the remainder. Can anyone assist?