
Answer:
The correct answer is:
c. var leftOver = numApples % 3
Explanation:
JavaScript uses different operators to perform various mathematical functions. In mathematics, when a number is not completely divisible by other the answer contains the remainder and quotient.
Modulus operator is used in JavaScript to find the remainder.
For example,
20/3 will return the quotient which is 6 while
20%3 will return the remainder which is 2
In the given statement, we have to find the number of remaining apples after being divided into three people
So,
Number of apples mod 3 will give us the number of remaining apples.
Hence,
The correct answer is:
c. var leftOver = numApples % 3