+ 1

I want to add a comparison Operator I want that I click on a button and it opens a the comparison Operator

14th Oct 2020, 9:57 AM
Charchit Dahiya
Charchit Dahiya - avatar
6 Respostas
0
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <p> first check whether number os negative aor positive</p> <button onclick="show();">divisible by 9</button> </body> </html> function show(){ var x= prompt("enter number") var x = (x%9==0) ? "divisible":"not" }
14th Oct 2020, 9:59 AM
Charchit Dahiya
Charchit Dahiya - avatar
0
I am doing this someone please help After clicking I input number but it gives nothing
14th Oct 2020, 10:00 AM
Charchit Dahiya
Charchit Dahiya - avatar
14th Oct 2020, 10:01 AM
Charchit Dahiya
Charchit Dahiya - avatar
0
Thanks bro. Very thanks
14th Oct 2020, 10:06 AM
Charchit Dahiya
Charchit Dahiya - avatar
0
It worked
14th Oct 2020, 10:06 AM
Charchit Dahiya
Charchit Dahiya - avatar
0
Ok thanks
14th Oct 2020, 10:10 AM
Charchit Dahiya
Charchit Dahiya - avatar