結果 : javascript define variable in if statement