Answers for "odd even condition with ternary operator in javaScript"

1

odd even condition with ternary operator in javaScript

let number = 15;
number %2 ==0 ? console.log(number ," is Even Number!!!"): console.log(number, " is Odd Number!!!");
Posted by: Guest on August-17-2021

Code answers related to "odd even condition with ternary operator in javaScript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language