Следите за новинками
в нашем Telegram канале. Жми, чтобы подписаться:)
⊗jsSpSgDRm 87 of 294 menu
◀ ▶

Removing the localStorage data in JavaScript

Using the removeItem method, you can remove data and its associated key. Let's remove the contents of some key for example:

localStorage.removeItem('key');

Now let's check the data:

let value = localStorage.getItem('key'); console.log(value); // shows null

Make a page refresh counter. Let the counter be reset after it reaches 10.

← →
↑
English▼
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline