Please choose the correct answer to the question: Most stars in the Milky Way are like the Sun. The Sun will eventually become a red giant. After the red giant stage, what determines whether a star will become a white dwarf or a supernova?

Answer1: the mass of the star Answer2: the diameter of the star Answer3: the brightness of the star Answer4: the type of gas in the star

Answer format: answer1/answer2/answer3/answer4
Answer: answer1