I want to make my custom object in javascript. I have made a method in my object to make value uppercase but it is not working. fiddle
function mystring (name,uppercase){
this.name= name;
this.uppercase= function (){
return this.toUpperCase();
};
}
var jj= new mystring('mycompany');
jj=jj.uppercase();
console.log(jj)