I believe my elseif is formatted correctly but it is failing. I have tried wrapping the elseif in quotes (second == equal statement), adding extra equal signs. Not sure what else I can do.
if (window.location.href.includes("?") && window.location.href.includes("year=") )
{
console.log("replace the 4 characters following the equal sign");
}
elseif (window.location.href.includes("?") && window.location.href.includes("year=") == "false")
{
console.log("last condition");
}
else {
console.log("end");
}
Aucun commentaire:
Enregistrer un commentaire