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
Does that help?