Write a remove function, remove any property whose value is the longest text.
This is my breakthrough ...
function remove (num , obj){
let myObject = {
name:"Rodolfo",
edad : 23,
hobby:"ir al cine"
}
if(Object.values(myObject)> num){
delete Object.key(myObject);
}
return myObject;
}
remove (8,myObject)
Because when the code is executed, do you mention that myObject is not defined?