r/javaScriptStudyGroup • u/ForScale • May 10 '16
CHALLENGE: Write a multiplication function...
CHALLENGE:
Write a multiplication function that takes two numbers integers as arguments and returns their product.
Rules:
Cannot use
*or/operatorsCannot use Math object
Cannot use for (any variation) or while (including do) loops
2
Upvotes
2
u/Volv May 10 '16 edited May 10 '16
Recursion Example. Fixed signs this time Codepen
Although I used a multiply symbol for those signs... hmmAnd now I got rid of it