i have this function :

Code:
var person={name:"tuna",age:"18"};
function checkold(object,property){
       var data=object.property;
       return data;
}
alert(checkold(person,"age"); // display undefined
it display undefined

help me thank