Learn Recursion by Building a Decimal to Binary Converter - Step 12

I am struggling with the NEW and final part of this step, " Also, as we mentioned in step 1 that we are considering only positive numbers, we should add a third condition in IF statement to check whether the number is less than 0 (i.e negative numbers)"…

My code so far looks like this:

if (!numberInput.value || isNaN(parseInt(numberInput.value))) {

  }

I have tried the following so far:

if (!numberInput.value || isNaN(parseInt(numberInput.value)) || numberInput.value < 0) {}
if (!numberInput.value || isNaN(parseInt(numberInput.value)) || (parseInt(numberInput.value < 0)) { }

Each time i get the same prompt back: You should wrap the value returned by parseInt() in the isNaN() function. And add a third condition which checks the value returned by parseInt() to be less than 0.

Please let me know how I can pass this step and what I’m doing wrong!

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

That being said, as far as the third condition goes, you only need to wrap numberInput.value in parseInt so we know that value is a number.