<aside> ❗ 서버와의 효율적인 통신을 위하여 객체를 경량화 시킨 포맷

</aside>

{
	"string": "HEROPY",
	"number": 123,
	"boolean": true
}

JSON.stringify()

const str = JSON.stringify(user)

JSON.parse()

const obj = JSON.parse(str)

Storage

<aside> ❗ 브라우저에 종속되는 저장소

</aside>

localStorage.setItem('키', '값') // 키-값 쌍을 저장소에 저장하기

localStorage.getItem('키')  // 키를 통해서 저장소에 저장돼 있는 값을 불러오기

localStorage.removeItem('키')  // 키에 해당하는 값을 삭제하기