How does the lifespan of a star scale in relation to its mass?

Answer

A more massive star has a much hotter core, causing its hydrogen fuel to be consumed at an exponentially faster rate

The text explicitly states that a more massive star has a hotter and denser core, leading to an exponentially faster consumption rate of its hydrogen fuel compared to less massive stars.

How does the lifespan of a star scale in relation to its mass?
physicsastronomyenergyfuelstar