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

98
Views
The setting about setTimeout function
const enemies = [];
var A = 5;
enemies.push({
      r: Math.random() * 200+A ,
      deg: Math.random() * 360,
      opacity: 0
  });
enemies.push({
      r: Math.random() * 200 ,
      deg: Math.random() * 360,
      opacity: 0
  });
setTimeout(function() {
   A = A+50
}, 5000);

Excuse me guys. I am new for JS. Can someone tell me why my setTimeout() didn't work. I think I lost a function to feedback for array. What should I do?

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!