javascript clear session storage item code example Example: javascript localStorage clear items localStorage.clear();//this clears the localStorage completely