Recently, I created a loan calculator using Javascript and now I'm contemplating on incorporating the time taken for the code to execute into the results. My intention is to have the execution time displayed on my HTML page, but I am unsure of how to proceed. Any assistance would be greatly appreciated! Here's the code for the loan calculator: https://github.com/gerhynes/loan-calculator
I attempted to achieve this by logging the execution time in the console, but it didn't yield the expected results. My ultimate goal is to have it printed directly on the HTML page.