I have:
String.prototype.callcm = function(something[]){
alert(something);
};
"something".callcm({a:50,b:60});
how can the arguments with there variable name get in the something array.
I think you are asking for a way to pass the values {a:50,b:60} to the function.. then you just need to fix the syntax.
Change function(something[])
to function(something)
jsFiddle here
console.log()instead ofalert(), as it will allow you to interact with the object in your developer tools console. This might be useful as you troubleshoot.