Yeah, sorry, this got lost in the shuffle. I do tend to more likely miss ones when later replies pile on and don't address.
So, this just got missed.
I passed, however I wanted to confirm that I did this challenge to its' terms.
It's technically not correct in that it doesn't follow the instructions: "... an anonymous function based on the number that the user selected. Each of your three anonymous functions ... "
In this case I'm okay with that, although admittedly might be okay if we were more stringent and checked for it (no worries, unless others really want it, I'm not going to change it in this case to be stricter.
It does produce the same result given those strict values and the restricted tests we're doing, which is more important in this case to me since you illustrated you understand the same concepts (almost ... close enough for me) that are required to come up with the posted solution at the top of this thread
I wish one of the mods would comment on this and explain help us through thinking about it.
Correctness-wise, as it asked for 3 anon. funcs., you'd need to use the sol'n at the very top of this topic.
A bit more general, one thing you'd want to consider is if you'd be calling the outer function once, and the returned function many times, or vice-versa.
If the returned functions were to be called many times, and it was expensive to decide which one to use, use the sol'n at the top of this thread, since the work'd be done once per return of the inner function.
If you'd be calling the outer function more often, then maybe you'd want the inner to do the work (in this case represented by deciding which function to choose), although normally if you're just returning 1 function that takes no pars. and uses a var. obtained via closure , best just to not have an anon-func. at all.
There are times when other interfaces need it, though, so I think that'd be one exception.
That's pretty hand-wavy, so ask if you need more explanation and I can provide some pseudo-examples. Note of course I'm sure there're other considerations, and the main point here anyway is fiddling with the mechanics, not when to use in this case 1 vs 3 anon. funcs.