結果 : javascript variable scope in if statement