When entering a JQL query, auto-complete will suggest fields, operators and values as you type. It will also check that the JQL query is valid:
a green checkmark icon will appear if the query is valid
a red exclamation icon will appear if the query is invalid