結果 : how to make a recursive function in javascript