Find Jobs
Hire Freelancers

control a for loop

$10-30 USD

Completed
Posted about 6 years ago

$10-30 USD

Paid on delivery
I have a loop that counts to 50. But in this loop i want to stop when the counter is divided by 10 and starts counting again when a trigger happens. I've made a simple express-node app but I don't know how to handle this.
Project ID: 16764468

About the project

6 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I didn't get exactly what do you want to do, but if you add this condition it should work as you said if (i%10===0) break; anyway, why the condition ((is divided by ten?)), you can only count to ten why do you even count to 50?
$10 USD in 1 day
5.0 (7 reviews)
4.2
4.2
User Avatar
Oh my God.... I can help you now itself... Only few changes have to be made.. Then it will run as your wish. Believe me sir. As soon as you provide me the project, I can give you the solution that time itself.
$10 USD in 1 day
0.0 (1 review)
0.0
0.0
6 freelancers are bidding on average $19 USD for this job
User Avatar
Hey Sir, I am interested in your project.I can help you with this loop and I am ready to start the work right now, and will deliver with good result to you. please send me a message so that we can discuss more
$25 USD in 1 day
4.9 (34 reviews)
5.8
5.8
User Avatar
Hi There, I am Sr. Node.js developer and can give your task done in 30 mins. Thanks, ~abdul
$25 USD in 11 days
5.0 (25 reviews)
4.6
4.6
User Avatar
Hi In am an expert JavaScript coder. I can fix your loop to skip specific values. Contact me Thanks
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of ROMANIA
Bucharest, Romania
5.0
2
Payment method verified
Member since Sep 1, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.