Q:

If statement within an If statement?

I am doing some very basic code within JavaScipt. I am going through If statements. whenever I enter a number over 100 (either for c or d) I don't get an alert that "You number is over one hundred". What is it that I am missing??? Feel like it's a simple solution I'm just not seeing it.
var c = prompt("Please enter a number between 1 and 100");
var d = prompt("Please enter a number between 1 and 100");
if (c || d <=100) {
    if (c == d) {
        alert("Your first number is equal to your second number!")
    }else{
        alert("Your first number is not equal to your second number!")
        }
}else{
    alert("Your number is over 100")
};

A:

You can read the if statement more accurately like this:
if(c || (d < = 100)){

Because c will always be true unless you enter 0, it will never say "your number is over 100"
You can rewrite it to something like this if you want to check if either are over 100:
if(c <= 100 || d <= 100){

