Detecting currency

Detecting currency of visitor location

let response = {
    "l10n": {
        "currencyName": "Dollar",
    }
};

console.log("The currency used in the visitor's location is:", response.l10n.currencyName);
package main

import "fmt"

var response = map[string]map[string]string{
	"l10n": {
		"currencyName": "Dollar",
	},
}

func main() {
	fmt.Println("The currency used in the visitor's location is:", response["l10n"]["currencyName"])
}
response = {
    "l10n": {
        "currencyName": "Dollar",
    }
}

print("The currency used in the visitor's location is:", response['l10n']['currencyName'])