1 min readAug 27, 2018
Thank you reading the blog Vimal Raj
If I get this right, this should be no different. You can create functions like
const hello = new UserOffer(() => ‘this is hello’);
const hi= new UserOffer(() => ‘this is hi’)
Now when we are assigning the value of a
, we can say User.setA('hello')
Does that help?