How to make Function Constructor

function ManipulateStudentRecord(obj,eandD,string,newValue){
this.obj = obj;
this.eandD = eandD;
this.string = string;
this.newValue = newValue;

if(eandD ===”edit”){
return obj=function(){
return
this.name:”kamal”,
this.age:23,
this.designation:”pilot”
}
}if(eandD ===”delete”){
return newValue =function(){
return
this.name:””,
this.age:””,
this.designation:””
}
}
}

ManipulateStudentRecord()

Leave a Comment