Skip to content

Missing amortization table element #7

Description

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.

<h3>Monthly Rate: <span id="monthlyRate"></span></h3>
<table id="amortization"></table>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions