Battery status

The navigator.getBattery() API obtains information about the device’s battery, including charge level and status. Also known as the Battery API.