Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

odd even condition with ternary operator

let number = 15;
number %2 ==0 ? console.log(number ," is Even Number!!!"): console.log(number, " is Odd Number!!!");
 
PREVIOUS NEXT
Tagged: #odd #condition #ternary #operator
ADD COMMENT
Topic
Name
7+6 =