Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing amortization table element #7

Open
Eitan-G opened this issue Apr 24, 2017 · 1 comment
Open

Missing amortization table element #7

Eitan-G opened this issue Apr 24, 2017 · 1 comment

Comments

@Eitan-G
Copy link

Eitan-G commented Apr 24, 2017

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>
@starkipraggy
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants