The .addMenu() method is used to add a new custom menubar to the default menubar.
.addMenu(new NavBarMenu())
NavBarMenu
Required. This is the JavaScript variable that was defined using the NavBarMenu() function to represent a new custom menubar.
This method is used to add a new custom menubar to the default menubar. For examples on how to use it, refer to the Creating Custom Menubars section.