- What are operators?
Operators are used for combining, transforming and comparing values. They can be unary, binary or ternary depending how many values they take, or they can be arithmetic, comparison, logical or other (type of, concatenation…) depending of the purpose of their use.
- What binary operators do you know?
Binary operators are the operators that use two values. There are arithmetic binary operators (+, -, *, /, and %), Comparison binary operators (<,>, <=, >=, ==, !=, ===, !==), logic binary operators (&&, ||) and string concatenation (+).
- What logical operators do you know?
Logical operators are “AND” (&&), “OR” (||), “NOT” (!) and “CONDITIONAL” or “TERNARY” operator ( ? : )