Hello Guys,
I need some help. Attached is the formula image which I want to use in Javascript but I dont know how to do the superscript in Javascript
Here is my code
<script>
function myFunction() {
var pmt;
var PV = 201508;
var i1 = 3.625;
var i2=3.625/100;
var i = i2/12;
var n= 360;
pmt = PV * i(1+ i)/(1 + i) - 1;
}
</script>
Can someone tell me how I can use the attached formula image in javascript.
Thanks
Raj
I need some help. Attached is the formula image which I want to use in Javascript but I dont know how to do the superscript in Javascript
Here is my code
<script>
function myFunction() {
var pmt;
var PV = 201508;
var i1 = 3.625;
var i2=3.625/100;
var i = i2/12;
var n= 360;
pmt = PV * i(1+ i)/(1 + i) - 1;
}
</script>
Can someone tell me how I can use the attached formula image in javascript.
Thanks
Raj