It's generally a good idea to spend as little time as possible at the top and bottom of any lithium ion battery. So it's OK to charge to 100% just a few hours before leaving on a trip, and OK to drive down to 1% (if you dare) as you pull into a charger. But your daily home charging setpoint should be 70-80%. Those extremes are where the battery's capacity can degrade over time. And if you are someone who only keeps cars for a few years, you don't really need to care as much.
Now each manufacturer has small differences in battery chemistry, and some have larger buffers at the top and bottom that you can't access, so the generalized advice changes a bit. For example Apple and most cell companies don't let you truly fully charge your battery, so their 100% might really only be 85% of the battery's capacity, so charging it up every night won't significantly reduce its life. In some instances, Tesla had software-limited packs to a smaller capacity so you could also charge those higher.
I very rarely go above 90%, I have only hit 100 a few times over three years, just before heading out on a trip.
If you are leaving it parked for long term weeks or months, leave it plugged in but set to 50%.