[SalesForce] How to call one function from another function in same javascript file in lightning web component

If there are two javascript methods A() and B() in same LWC component, is it possible to call method B() from A() where Function A() gets called with click of button? If not what can be the possible workaround for this?

Best Answer

Yes, use this to access other methods:

export default class CMD extends LightningElement {
  A() {
  B() {
    // do something //