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

191
Views
Learning to use Javascript 'fetch'

I'm trying to start simple and just fetch a page within a function from a Chrome extension. I think I have the extension correct as it executes my code. My problem is I'm getting the error:

ReferenceError: reponse is not defined

Here is my code:

function requests(url) {
   fetch(url,{mode: "no-cors"})
    .then(response => {
        if (!response.ok) {
           throw new Error(`Request failed with status ${reponse.status}`)
        }
     return response.json()
     })
     .then(data => {
        console.log(data.count)
        console.log(data.products)
     })
    .catch(error => console.log(error))
 }

Can someone help me get started on this? TIA.

about 4 years ago · Santiago Trujillo
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!