var person = {
firstName : "John",
lastName : "Smith",
age : 23
};
function printFullName()
{
console.log(this.firstName + " " + this.lastName);
}
function printDetails()
{
console.log(this.firstName + " is " + this.age + " years old");
}
var boundPrintFullName = printFullName.bind(person);
var boundPrintDetails = printDetails.bind(person);
boundPrintFullName();
boundPrintDetails();