Micky Rajput

Micky Rajput

  • NA
  • 27
  • 5.3k

angular js 2.0 onlick button show

Dec 26 2017 8:27 AM
button onclick input text box value show on page is odd or even..when type 1 the value show is odd and when type 2 ..the value show is even and same show on alert box????plzzz help mee????
if (num%== 2){
 console.log("number is even");
 
else{
 
 console.log("number is odd")
 
}
return(); 
 
plzz help me 

Answers (1)