I want call a function inside a key : so I am learning javascript since the start of this year so I dont know much.

{key:"setup",value:function() { code } }

I wanna call the function(?) "setup" but I dont know how. There is a way do to it ?