JavaScript Storage length Property
JavaScript Storage length Property
The length property is used to return the number of items stored in the browsers Storage Object. It is a very important method of the Storage Object. The Storage Object is either a localStorage object or a sessionStorrage object.
Syntax:-
Its syntax is:- localStorage.length OR sessionStorage.length