Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the Document</title> </head> <body> <script> sessionStorage.user = { name: "Jack" }; alert(sessionStorage.user); // [object Object] </script> </body> </html>