+ 3

# [DUPLICATE] How the modulus operator works on JavaScript?

how can the answer of 38%5 is 3??Please help me.

5 Answers

+ 10

Divide 38 by 5, you'll get 3 as the remainder:-)

+ 5

Its Remainder when 38 is divided by 5

+ 4

/ is devided by, % is remainder AFTER dividing.

+ 1

thank you very much

+ 1

when 38 is divided by 5 the reminder will be 3.