I am having trouble recalling how to compare these two strings in an if statement. What I am trying to do is check if my variable compare equals page1 or page2 if not, go to the else statement.
var compare = "page3";
if (compare === "page1" || "page2") {
document.body.innerHTML = "github url";
} else {
document.body.innerHTML = "non-github url";
}