var student = {
get : function (id) {
console.log(`Getting Student ${id} from db`);
if(id){
return {
name: 'Oliver Mensah',
school: 'Ashesi University',
country: 'Ghana'
}
}
},
save: function (student) {
console.log(`Saving ${student.name} to the db`);
}
}
student.get(1)