The ternary operator is a conditional operator that takes three operands. It is frequently used as a shortcut for the `if` statement. ```js console.log(condition ? true : false); ```