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

361
Views
How to do a division without using recursion or the `/` operator?

I have an exercise that consists of using functional programming using javascript, the exercise is to make a calculator, I already did the multiplication without using recursion or the / operator but I don't understand how to do the division, I have tried various solutions but it doesn't work.

My operations

const adition = (a, b) => a + b;

const sustraction = (a, b) => a - b;

const multiplication = (a, b) => {
    return [...Array(b)].reduce((acc) => adition(acc, a), 0);
};
about 4 years ago ยท Juan Pablo Isaza
1 answers
Answer question

0

Remember how you did long division in grade school?

Implement that! ๐Ÿ˜‰

But if you can't remember:

  • Long Division | math is fun
  • How to do Long Division in 6 Steps (With Pictures)
  • Step by Step Guide for Long Division
  • Intro to long division (remainders) (video) | Khan Academy
about 4 years ago ยท Juan Pablo Isaza Report
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!