Code to go logo
Created using Figma
Use Cases
Contribute
How to get division remainder in JavaScript
Numbers
By Jad Joubran ·
Last updated Mar 08, 2018
const even = 8 % 2; const odd = 5 % 2; console.log({ even, odd });
{ even: 0, odd: 1 }
Mar 08, 2018
1
Jad Joubran
See answer
1
Jad Joubran
Remainder
on MDN
Learn JavaScript step by step