I was wondering if what is possible in javascript with cookies is doable somehow in node.js for example
document.cookie="sss=fff;";
i want to define a method in the an object that behaves like this, and instead of making the variable equal to the string it pushes it in an array.
function o(){
this.add=[]
}
var o1= new o();
o.add="sss=fff;";