結果 : javascript execute function after previous function completes