結果 : javascript check if function variable is defined