Number isOdd Property

  • Post author:
  • Post category:Dart
  • Post comments:2 Comments
Number isOdd Property

In this guide, we will discuss Number isOdd Property. This property returns a Boolean value true if the number is an odd number.

Syntax

num.isOdd 

Example

void main() { 
   int posNum = 10; 
   print(posNum.isOdd); 
}   

It will produce the following output −

false

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply