Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

150
Views
what is problem with fetching currency data in github?
let a= async function d(frm,to){
let c = await fetch('http://api.exchangeratesapi.io/v1/latest? 
access_key=77bdf9458124569180fd15fdab79f07f')
return await c.json()
}

a(frm,to).then(value=>{
    return value.rates}).then(data=>{
        if((data[to]/data[frm]).toString().length===1){
            output.value=`${(amount*(data[to]/data[frm])).toFixed(2)}`;
            console.log(data[to]);
        }
        else{
        output.value=`${amount*(data[to]/data[frm]).toFixed(2)}`;
        console.log(data[to]);
        }
    })

I am working on currency converter i have used api for that my code above works properly and i am getting output correctly but i am not getting output when i have published it on git hub.Error is shown below in the imagethis is error

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!