I\'m having trouble recalling how to compare these two strings in an if statement. What I\'m string to do is check if my variable compare equals page1
compare
page1
a.localeCompare(b) is another cool way of comparing larger strings
a.localeCompare(b)
function areEqual(a, b){ if (a.length !== b.length) { return false; } return a.localeCompare(b) === 0; } if(areEqual(a,b)){...}