How am I supposed to prefill my sessionStorage with test data and why should I do that? (this is the task which I need to do). Can you give me some examples of it?
E.g. check with getItem if variable is empty, if empty setItem:
if(!sessionStorage.getItem('key')) sessionStorage.setItem('key','123value');
console.log(sessionStorage.getItem('key'))