JavaScript Operators - Exercise 2

The modulus operator (%) in JavaScript returns the remainder of a division operation.

You can use the increment operator (++) in JavaScript to increase the value of a variable by 1.

You can use the decrement operator (--) in JavaScript to decrease the value of a variable by 1.

Unary operators in JavaScript are operators that operate on a single operand.

You can use the unary negation operator (-) in JavaScript to negate a numeric value.

Logical operators in JavaScript are used to perform logical operations between two or more values and return a boolean result.

You can use the logical OR operator (||) in JavaScript to perform a logical OR operation between two values.

Short-circuit evaluation in JavaScript occurs when the result of a logical expression can be determined by evaluating only a part of the expression.

The ternary operator (?) in JavaScript is a conditional operator that evaluates an expression and returns one of two values based on whether the expression is true or false.

You can use the ternary operator (?) in JavaScript to create a concise conditional statement with the syntax: condition ? expression1 : expression2.