In JavaScript, when we perform arithmetic operation with an uninitialized variable, the result would be code example
Example 1: modulus js
const tableNumbers = [5, 14, 7, 10, 20, 11, 12, 15, 3]
for (let i =0; i < tableNumbers.length; i++) {
if (tableNumbers[i] % 2 === 0) {
console.log(tableNumbers[i])
}
}
Example 2: javascript Arithmetic operators
var additionOutput = 2 + 2;
var subtractionOutput = 2 - 2;
var multiplcationOutput = 2 * 2;
var divisionOutput = 2 / 2;
var exponentiation = 2**2;
var modulus = 5 % 2;
var unaryOperator = 1;
++unaryOperator;