However, it is not possible to do so in JavaScript, as the recursion goes too deep for the language to handle.然而,在 JavaScript 中这种方式不太可行,因为这个算法的递归深度对它来讲太深了。