結果 : if input is empty javascript