Y
Hacker News
new
|
ask
|
show
|
jobs
by
rndgermandude
3355 days ago
The code uses dividers[divisor] so dividers[3](6, 3) so undefined(6,3) and that does not work
1 comments
idbehold
3355 days ago
Oh, yeah the divideSomeNumbers() function doesn't work correctly. It should probably be using:
var divider = dividers[divisor] || dividers[undefined];
link