The family starts as a nuclear family, gradually it grows to an extended family. Family get-together will help family members to know one another. Children will know their grandparents (that is if grandparents are still alive). Children will also know their cousins, uncles and aunts. Grandparents will also get a chance of seeing their children and grandchildren. The uncles and aunts also interact with their nephews and nieces. Family reunion also helps sister in-laws to enjoy the company of one another and knowing each other.
Events in Node.js The EventEmitter Object You can assign event handlers to your own events with the EventEmitter object. In the example below we have created a function that will be executed when a "scream" event is fired. To fire an event, use the emit() method. var events = require('events'); var eventEmitter = new events.EventEmitter(); //Create an event handler: var myEventHandler = function () { console.log('I hear a scream!'); } //Assign the event handler to an event: eventEmitter.on('scream', myEventHandler); //Fire the 'scream' event: eventEmitter.emit('scream');






Comments
Post a Comment