1let storage = window.localStorage;
2
3// set an item
4storage.setItem("highscore", 76);
5
6// get an item
7let highscore = storage.getItem("highscore");
8
9// remove an item
10storage.removeItem("highscore");
11
12// clear entire storage (NOT recommended as it also removes information about cookies, ad storage an so on)
13storage.clear();