Answer: A star's mass is determined by the amount of matter that is available in its nebula, the giant cloud of gas and dust from which it was born. Over time, the hydrogen gas in the nebula is pulled together by gravity and it begins to spin. As the gas spins faster, it heats up and becomes as a protostar.
Explanation: