Rumah > Soal Jawab > teks badan
document.cookie="userId=828";
document.cookie="userName=hulk"; pasangan nama/nilai
var arrCookie=strCookie.split("; ");
var userID; ;i++){
var arr=arrCookie[i].split("=");
//Cari kuki bernama userId dan kembalikan nilainya
if("userId"==arr [0]){
userId=arr[1];
break;