My apologies to everyone for previous versions of this being vague. Someone has decided to have pity on the new girl and help me rewrite this question - here's an update that I hope will clear things up (and, thanks to all those who have been so generous with answers so far):
The Problem
I'm a new computer science student, in my first year at Uni. For the final project for my Algorithms class, we can pick any language we would like and implement a "refinement"/"efficiency" algorithm that is found natively (internally?) in another language, but missing in the language we pick.
We just recently studied recursion in class and my professor briefly mentioned that JavaScript does not implement Tail Recursion. From my research online, the new ECMA script 6 specification includes this feature, but it's not in any(/most?) JavaScript versions/engines at present? (sorry if I'm not sure which is which... I'm new at this).
I did find a few interesting posts like this.
And finally, what is a really cool ECMA Script 6 emulator called Continuum
My assignment is to provide 2 options for (coding a) WORK AROUND to the feature that is lacking.
So, my question is... does anyone, far more intelligent and experienced than I, have any thoughts or examples on how I might implement a:
WORK AROUND for the lack of Tail Recursion Optimization?