I am defining a variable called user. The session storage gets the value of that variable as [object Object], but if I try to get or print different properties I get the following
user.name = I get nothing
user[0] = I get [
I have tried different ways but I am not able to get the property of that object called name.
Help please!
sessionStorage.user = userSessionStorage;
I get [object Object]
I just need to know how I can get the values of the differents properties