Based on the value inside the localStorage geo__location, I should show and hide an element on the page. If the value of the country is US I should show the element but hide it if it's not US.
If I run: window.localStorage.getItem("geo__location")
in console, I get this:
"{"country":"US","currency":["USD"]}"
But how can I check only the value of country inside the json?