A shortened version of the condition statement is called the ternary operator. Ternary operators can be simple or nested.
JavaScript replace() inline method accepts two parameters, the first parameter can be a string value or a regular expression.