The country_code in this case can be DE or GB.
var cc = country_code
if (cc.equals == "GB"){
console.log("You're in the UK")
}
else {
console.log("You're not in the UK")
}
Why is this statement throwing up incorrect responses?
EDIT:
The missing " was a typo. The solutions given haven't work so far.
I set country_code to be the text response of a XMLHttpRequest object. If that helps?