Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get currency symbol from locale

async function getCurrencySymbol() {
    const response = await fetch("http://www.geoplugin.net/json.gp");
    const data = await response.json();
    return data.geoplugin_currencySymbol;
}

const currency = await getCurrencySymbol();
 
PREVIOUS NEXT
Tagged: #javascript #currency #symbol #locale
ADD COMMENT
Topic
Name
1+6 =