Sorry kind of a meta question here I guess...just trying to wrap my brain around the concept.
Codecademy says "&& evaluates to true when both statements are true" and "|| evaluates to true when either or both are true"
Okay, makes sense.
But if that's the case, why do we have to write an "if" statement inside the function telling the computer to return true when both are true (in the case of &&), or false when one is not true? And why do we need to write an "if" statement telling the computer to return true when one or both are true (in the case of ||)? If we already defined the variables as either true or false at the beginning (outside the function) shouldn't it then be a given that && || etc. will evaluate a certain way?
Does this question make sense? Or am I just not getting it?