The ternary operator ? : performs a conditional check and returns one of two values based on the condition.