JavaScript mendapatkan nilai cookie satu liner
const value = ('; '+document.cookie).split(`; COOKIE_NAME=`).pop().split(';')[0];
Gershom Rogers
const value = ('; '+document.cookie).split(`; COOKIE_NAME=`).pop().split(';')[0];