OMENSAH
2/14/2018 - 10:01 AM

basicModule.js

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)