javascript return of recursive function

前端 未结 4 1916
别那么骄傲
别那么骄傲 2020-12-06 11:22

Hate to open a new question for an extension to the previous one:

function ctest() {
    this.iteration = 0;
    this.func1 = function() {
        var result         


        
4条回答
  •  离开以前
    2020-12-06 11:34

    Your outer function doesn't have a return statement, so it returns undefined.

提交回复
热议问题