結果 : how to use function inside function in javascript