title: Uncaught TypeError: Cannot set property 'textContent' of null
body: <p>I've encountered this error below when trying to follow along on a Udemy JS project.  3 of my full time dev friends can't figure it out and I've read 10 - 15 StackOverflow articles about this error as well as its variations and nothing seemed to apply.</p>
  
  <p>Here's the common errror:</p>
  
  <pre><code>Uncaught TypeError: Cannot set property 'textContent' of null
      at Object.displayBudget (app.js:177)
      at updateBudget (app.js:219)
      at ctrlAddItem (app.js:236)
      at HTMLDocument.&lt;anonymous&gt; (app.js:205)
  </code></pre>
  
  <p>It seems pretty straight forward but the common solutions of placing the script at the bottom of the HTML right before the closing body tag and not having a matching element by the name queried do not apply.  I've triple checked both things and even added the JQuery .ready function at someone's suggestion to ensure the page was loading.</p>
  
  <p>I've set break points in the console for all line referenced above and stepped through the code and directly before the failure it looks like my variable is defined and is not NULL.  See picture attached or below.</p>
  
  <p><a href="https://i.stack.imgur.com/8qH8W.png" rel="nofollow noreferrer">Code Step Through</a></p>
  
  <p>That 'budget__value' totally exists in the html.</p>
  
  <pre><code>&lt;body&gt;
  
          &lt;div class="top"&gt;
              &lt;div class="budget"&gt;
                  &lt;div class="budget__title"&gt;
                      Available Budget in &lt;span class="budget__title--month"&gt;%Month%&lt;/span&gt;:
                  &lt;/div&gt;
  
                  &lt;div class="budget__value"&gt;+ 2,345.64&lt;/div&gt;
  </code></pre>
  
  <p>Here is a <a href="https://jsfiddle.net/Laflamme02/3uy9vp89/" rel="nofollow noreferrer">Fiddle</a> of my code.  I've also pushed it up to Github (/Laflamme02/BudgetApp) if you want to see what I'm getting myself into here. </p>
  
  <p>I've been struggling with this for at least 2 weeks so whoever helps me solve this will be my favorite person ever.</p>