diff --git a/files/en-us/web/api/window/localstorage/index.md b/files/en-us/web/api/window/localstorage/index.md index 529565819608bd3..ea4cf0d78557492 100644 --- a/files/en-us/web/api/window/localstorage/index.md +++ b/files/en-us/web/api/window/localstorage/index.md @@ -37,7 +37,7 @@ In all current browsers, `localStorage` seems to return a different object for e ## Examples -The following snippet accesses the current domain's local {{DOMxRef("Storage")}} object and adds a data item to it using {{DOMxRef("Storage.setItem()")}}. +The following snippet accesses the current domain's local {{DOMxRef("Storage")}} object and adds a data item to it using {{DOMxRef("Storage.setItem()")}}, or updates the item if one already exists for that key. ```js localStorage.setItem("myCat", "Tom");