Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

exponent form calculator in angular

function exp(b,n)
{
        var ans = 1;
        for (var i =1; i <= n; i++)
        {
                ans = b * ans;        
        }
        return ans;
}
console.log(exp(2, 3));
 
PREVIOUS NEXT
Tagged: #exponent #form #calculator #angular
ADD COMMENT
Topic
Name
9+2 =