結果 : return a function in a function javascript