GarGerry commited on
Commit
f0e381a
·
verified ·
1 Parent(s): 52bf539

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +1 -1
script.js CHANGED
@@ -10,7 +10,7 @@ async function convertCurrency() {
10
  }
11
 
12
  try {
13
- const apiKey = 'YOUR_API_KEY'; // Replace with your API key
14
  const url = `https://v6.exchangeratesapi.io/latest?base=${fromCurrency}&symbols=${toCurrency}&access_key=${apiKey}`;
15
  const response = await fetch(url);
16
  const data = await response.json();
 
10
  }
11
 
12
  try {
13
+ const apiKey = '3ebe2ccf9eeea2aaef280201'; // API Key yang kamu berikan
14
  const url = `https://v6.exchangeratesapi.io/latest?base=${fromCurrency}&symbols=${toCurrency}&access_key=${apiKey}`;
15
  const response = await fetch(url);
16
  const data = await response.json();