how to optimize lots of if nesting in code using Javascript? [closed]

if (method1ReturnTrue()) {
  //doSomething
  if (method2ReturnTrue()) {
    //doSomething
    if (method3ReturnTrue()) {
      //doSomething
    }
  }
}

I am a new coder, Could anyone give me some advice how to optimize the above code for simplicity and not look ugly, Thanks in advance