Please I am having hard time to validate the JavaScript codehelp me out now, the processes to fellow
<!doctype html>
<head>
<meta charset=”utf-8″ />
<meta http-equiv=”X-UA-Compatible”content=”IE=edge”>
<title>Calculations</title>
<meta name=”viewport”content=”width=device-width, initial-scale=1″>
</head>
<body>
<input type=”text” placeholder=”Enternumber” id=”InputNumber”>
<button id=”Button1″onclick=”Button1Click()”>Power of 3</button>
<div id=”Result”></div>
<script >
functionButtonClick(){
//Error here in the name of the function (syntax)
var input =document.getElementById(“InputNumber”).value; //Get value of input number
var number =input; //Store for power of 3
//Calculations
for(var i = 0; i < 2; i++){ //Loop 2times because the first power is given
number *=number; //ERROR: Is Multiply by itself to find the power the correct way todo it?
//Example: 3 * 3 = 9, then 9 * 9 =
PayPal Gateway not configured
PayPal Gateway not configured