結果 : if is not undefined javascript