Create Exponent Power Calculator Using Jquery Or JavaScript
Hello guys Today i will tell you through this Tutorial How to Create Exponent Power Calculator Using JavaScript.
Exponent Power Calculator Using JavaScript Or Jquery
<html> <head> <title>Create Exponent Power Calculator Using JavaScript</title> </head> <body> <form name=form1> Enter Base number: <input type="text" name="input1" size='15' placeholder="Enter Base number"> <br> Enter Exponent Number: <input type="text" name="input2" size='15' placeholder="Enter Exponent Number"> <input type="button" value="Calculate" onClick='Calculateexponent()'> <br> The result is: <input type="text" name="answer" size='15'> </form> </body> <script type="text/javascript"> function Calculateexponent(){ var inputNum1=document.form1.input1.value; var inputNum2=document.form1. input2.value; var result = Math.pow(inputNum1, inputNum2); document.form1.answer.value = result; } </script> </html>