The phrase ("G74" || "G75")
forces a boolean evaluation on each string, and both will return true always.
So you would need to do something like this:
var myvar = document.getElementById("postcode-entry").value;
if(myvar === "G74" || myvar === "G75")