Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sum is not working in js

First Parse Variables into Number
var amountBorrowed = Number(document.form.amountBorrowed.value);
var interest = Number(document.form.interest.value) / 100;
var payments = Number(document.form.durationOfPayment.value);
var monthInterest = Number(document.form.interestPerMonth.value);
var totalInt = Number(document.form.totalinterest.value);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sum #working #js
ADD COMMENT
Topic
Name
9+3 =