While you can certainly use the laptop ONLY on the battery, that will reduce both the performance of the laptop and the brightness of the screen (to conserve battery power) and eventually, the laptop will shut off due to lack of power. So, you need to have it connected to the charger whenever possible.
I have had mine connected to the charger full-time for years and it has not suffered any ill effects.
***If my post helped, click the White thumbs-up symbol to say thanks***
***Please mark Accept As Solution if my post solved your problem***
I am a volunteer and I do not work for, nor represent, HP
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".