Ever wonder how apps or websites keep track of information like the city you're in?
They do it with a bit of JavaScript.