cookie j:{" code example
Example 1: js-cookie
//using js-cookie
//Setting A Cookie
Cookies.set('name', 'value')
Cookies.set('name', 'value', { expires: 7 })
Cookies.set('name', 'value', { expires: 7, path: '' })
//Reading A Cookie
Cookies.get('name') // => 'value'
//Read ALL cookies
Cookies.get()
//Delete Cookie
Cookies.remove('name')
Example 2: js-cookie
<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>