Operators are symbols used to perform operations on values and variables.

Operator TypePurposeExample
Arithmetic OperatorsPerform mathematical calculations10 + 5
Assignment OperatorsAssign values to variablesx = 10
Comparison OperatorsCompare two values5 > 3
Logical OperatorsCombine conditionstrue && false
Increment/DecrementIncrease or decrease valuex++
Ternary OperatorShort form of if-elseage > 18 ? "Yes" : "No"
Type OperatorCheck data typetypeof 123