A lifecycle of star can be determined by the mass of the star.
Explanation:
Stars are formed by the clouds of gases as well as the dust which is known as nebulae. Stars also come across a cycle that is a star is formed from gases and dust , then its grow more , various changes take place while growing after that the life span ends. Millions of year take for the formation of a star, while its growing process it shines brightly for several years. When the fuel present in the stars are exhausted , the star collapse as a result explosion of the outer layer takes place which is referred to as a supernova.