Code to go logo
Created using Figma
Use Cases
Contribute
How to check if number is odd in JavaScript
Numbers
By Jad Joubran ·
Last updated Dec 23, 2017
const number = 13; const isOdd = number % 2 !== 0; console.log(isOdd);
true
Dec 23, 2017
1
Jad Joubran
See answer
1
Jad Joubran
Remainder
on MDN
Learn JavaScript step by step
Related use cases
How to check if number is even in JavaScript