</span><span class="function">getItem</span><span class="punctuation">(</span><span class="string">'pets'</span><span class="punctuation">)</span><span class="punctuation">)</span><span class="punctuation">;</span>
<span class="comment">// -> '[{"pets":{"felix":{"species":"cat"}}},{}]'</span>

<span class="comment">// In another browser tab:</span>
sessionStorage<span class="punctuation">.</span><span class="function">setItem</span><span class="punctuation">(</span><span class="string">'pets'</span><span cl