I roll my eyes at this question because it's often framed as good faith curiosity, but it's often asked in bad faith by people that think it's a "gotcha" question, because they have this incorrect notion that EV batteries need to be replaced frequently. They see the warranty is 100K miles/8 years or whatever and think that means they have to replace the battery after 100K miles/8 years, yet fail to recognize that they don't apply that same logic to combustion engines with 30K mile/3 year warranties.