Battery technology facilitates the flow of electricity by converting chemical energy into electrical…