JSFiddle - React, Tailwind, and code Playground
JavaScript
var s = sessionStorage;
Object.defineProperty(s, "heh", { value: "aaa"} );
alert("heh: " + s.getItem("heh"));
Object.defineProperty(s, "0", { value: "bbb"} );
alert("0: " + s.getItem("0"));