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/ForScale May 10 '16
Nice!
Your syntax is getting interesting... Is it common practice to ditch the curly braces with if statements? Or is that a babel thing?