I am new to node modules. I tried
module.exports = function (firstName, lastName) {
    this.firstName = firstName;
    this.lastName = lastName;
    this.fullName = function () { 
        return this.firstName + ' ' + this.lastName;
    }
}
then
let person1 = new person('Rajesh','Dhoundiyal')
This works. But when i try to use Fat arrow in module.exports it does not works.
e.g. module.exports =  (firstName, lastName) => {
This gives error later as person is not a constructor. I am unable to know why it happen. Can anyone please tell me why fat arrow not works here.
 
    