You may sometimes want to store an object to use later. In order to do this, the object can be converted into a string.
This is how you convert object to string:
JSON.stringify({username:"jane", email:"jane@gmail.com"l})
To convert string back to object in order to access the data just do this:
const userInfo = JSON.parse(object)