Spaces:
Running
Running
Update script.js
Browse files
script.js
CHANGED
@@ -10,7 +10,7 @@ async function convertCurrency() {
|
|
10 |
}
|
11 |
|
12 |
try {
|
13 |
-
const apiKey = '
|
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();
|