Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

363
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda