Need help on Global variables

@Raman MITTAL,

Use JSON.stringify to write the object to storage and JSON.parse to convert the string to a Javascript object that you can use.

let addrObj = JSON.stringify($w("#pickupaddr").value);
session.setItem("pickupaddrvalue", addrObj);
let pickupaddrObj = JSON.parse(session.getItem("pickupaddrvalue"));