You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or rather, the tutorial doesn't even talk about modifying the HTML file even though it's implied that the HTML file will change (..."make a copy of index.html and main.js in case you want to go back to that version." in Point 1). A strange omission to be sure.
This is not an issue with the repository itself, but with the copy & paste code in the tutorial.
In the Using Classes section in step
4. Modify the calcBtn click event handler as follows:
The line
document.getElementById("amortization").innerHTML = html;
is referencing an element that is nonexistent.Uncaught TypeError: Cannot set property 'innerHTML' of null
Adding a table#amortization element after the Monthly Rate header will fix it.
The text was updated successfully, but these errors were encountered: