Prompt of javascript.
// per=prompt("Enter your exam percentage.")
// if(per>= 80 && per<= 100){document.write("You are in first merit.");}
// else if(per>= 60 && per< 80){document.write("You are in second merit.");}
// else if(per>= 55 && per< 60){document.write("You are in third merit.");}
// else if(per>= 45 && per< 55){document.write("You are in fourth merit.");}
// else if(per<= 33) {document.write("You are fail.");}
// else{document.write("You have entered invalid percentage.");}
a=prompt("welcome to my coding of javascript.")
if (a) {document.write("Thanks");
} else {document.write("Sorry")
}
Comments
Post a Comment