Translations:Expression Manager how-tos/19/en

Here are examples of common errors when typing EM expressions. Note that the tooltips provide additional information.
 * 1) Inline Javascript that forgot to add spaces after curly brace
 * 2) *Since "document.write" appears right after a curly brace, EM thinks it is an expression, and red-boxes "document" and "write" since they are undefined variable and functions, respectively
 * 3) Unknown/Misspelled variables, functions and operators
 * 4) *Here we forgot that we are using the variable name "gender" instead of "sex", but EM catches that error. It also red-boxes '++', since that is not a supported operator.
 * 5) Warns if use = instead of eq, or perform value assignments
 * 6) *Note that the '=' and '+=' are in red text instead of black. If you hover the mouse over them, you will see warnings that you are assigning a value.
 * 7) Wrong number of arguments for functions
 * 8) *if takes 3 arguments, but it has been given 4, so hovering over the red-boxed "if" will explain the error and show the supported syntax
 * 9) *sum takes an unlimited number of arguments, but we had a trailing comma before the closing parentheses, so that is red-boxed
 * 10) Mismatched parentheses
 * 11) *This is one of the most common errors when writing expressions.
 * 12) *This shows two examples of missing closing parentheses, and one example of having one too many closing parentheses.
 * 13) Unsuported syntax
 * 14) *If you use an operator or punctuation that EM does not support, it will red-box it.
 * 15) Invalid assignments
 * 16) *Some variables are readWrite and can have their values changed. Others are read-only.
 * 17) *If you try to change the value of a read-only variable, you can't. EM will red-box the attempt.
 * 18) *If you try to assign a value to an equation or a string, you will also get an error