Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
Hi here is my solution for Mortgage-repayment-calculator. I used HTML, CSS, JS.
What challenges did you encounter, and how did you overcome them?It was to do the form
, extract different values from the input
then calculate the loan.
perMonth = (myForm[2].value * ((myForm[4].value/100)/12))/(1-(1+((myForm[4].value/100)/12))**-(myForm[3].value*12));
Finally display the result.
interest = setComma(interest);
perMonth = setComma(perMonth);
totalLoan = setComma(totalLoan);
const payment = myForm[5].checked ? `${perMonth}` : `${interest}`;
result.insertAdjacentHTML('afterbegin', addElementResult);
What specific areas of your project would you like help with?
Feel free to leave any comments.
Thanks.
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord