When you create a Lightning Web Component it’s going to have some boiler plate code.
Our Lightning Web Component is going to extend ‘LightningElement’ that’s how we use a few functions and variables in our Lighting Web Components and they work off the hook without any configuration.
What if I don’t want all the features that we get access to off the bat in a typical Lightning Web Component and what if I want to use the LWC only to have some variables and functions, such that these helper functions and variables will be used my multiple other Lightning Web Components?
Here is a sample code
Hope this is helpful!