$34Original price was: $34.$26Current price is: $26.
There are no more products to display
Share
Before you leave, we would be happy if you share.
שלח/י הודעה בWhatsApp
Need Help?
Hello 👋 Can we help you?
// Replace with your actual API key
const apiKey = "ed019315a6f318291c64a073f865e86e";
// Function to fetch currency data
function fetchCurrencyData() {
const url = `https://api.currencylayer.com/list?access_key=${apiKey}`;
fetch(url)
.then(response => {
if (!response.ok) {
throw new Error(`Network response was not ok (status ${response.status})`);
}
return response.json();
})
.then(data => {
// Process the currency data here
const currencies = data.currencies;
console.log(currencies); // Log the list of currencies to the console
})
.catch(error => {
console.error('Error fetching currency data:', error);
});
}
// Add the function to the page's header
document.addEventListener('DOMContentLoaded', () => {
fetchCurrencyData();
});