Categories
Mastering Development

if a positive number is equal to its reverse

I’m making a program to receive a positive number and output "yes" if it’s equal to its reverse; otherwise, output "no". What I’ve done so far: HTML <div class="column1"> <div class="input"> <button onclick="problem()"> Run the program </button> </div> <strong><p id="output"> </p></strong> </div> JS function problem() { var outputObj = document.getElementById("output"); var a = parseInt(prompt("Please enter […]