1
Answer

angular js 2.0 onlick button show

Micky Rajput

Micky Rajput

6y
140
1
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)