Use the form to assist in input and modifying MapboxGL expressions. Check out the documentation for MapboxGL expressions here.
Also, you may paste in any MapboxGL expression into the bottom textarea and the form will build itself out to reflect the structure.