Converting a loop into a recursive function

后端 未结 5 1341
挽巷
挽巷 2020-12-18 13:33

I wrote a function yesterday to count the number of \"a\" characters in a string. My teacher told me to refactor the code into a recursive function and I don\'t

5条回答
  •  自闭症患者
    2020-12-18 14:21

    
    

    arguments.callee function will call the currently being executed method.

提交回复
热议问题