What is the % operator?
This is the modulus operator, and it gives the remainder after the division of two integers.
BY Best Interview Question ON 18 Nov 2020
Example
var A= 4
var B= 2
A%B = 0
This is the modulus operator, and it gives the remainder after the division of two integers.
var A= 4
var B= 2
A%B = 0