[jQuery] How to add an element to an object?

[jQuery] How to add an element to an object?


Hi, am very new to jquery and I want to do something that I suppose is
very easy but I can't figure out how to do it
If I have something like this:
var d = {one:1, two:2, three:3};
and I want to add a new item to d, how can I do it?
I have looked up the documentation and found the function called data
(name, value) and I tried doing this
$(d).data("four",4); but it wasn't added
Thanks in advance