結果 : javascript test if function is defined