JS logic | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

JS logic

Why does JS need methods for calculating the square and cubic root, if the pow method does everything with ease?

20th Jun 2019, 8:44 PM
Crinax
Crinax - avatar
1 Respuesta
+ 3
It's the same as asking, why do you need division. You can write x / 10 as x * 0.1. It's to make things easier
20th Jun 2019, 9:04 PM
Airree
Airree - avatar