Filter of Product Dataset with dynamic value when page loads

I found out about setItem() and getItem() as my solution to save value that can be used in another page, but I am getting NULL in 2nd page, here is the code in Page 1

import {local} from ‘wix-storage’ ;

export function box8_click(event,$w) {
local.setItem( “jsundertf” , “T-Shirt” );
}

Code in Page 2

import {local} from ‘wix-storage’ ;

export function button1_click(event,$w) {
let x= local.getItem( “jsundertf” )
console.log(x)
}

Returns NULL

I have used session an memory too, but the result is still the same.

Please help, I am very new in this programing and web development. I am stuck badly. Thanks in advance