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

111
Views
Create route to add the number of random numbers to the array (which is stored on the server). The quantity will get a number as a query parameter

How i can get lenght of array by req.query and then use forEach func to elements of this array?

    console.log('Connected')
} )
type Numbers = {
    num1?: number,
    num2?: number,
    num3?: number
}
app.use(json())
app.get("/r", (req: Request, res:Response) => {
    let arr: Numbers = req.query;
    return res.send({arr})

})```
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!