getify / You-Dont-Know-JS

A book series on JavaScript. @YDKJS on twitter.
Other
177.9k stars 33.39k forks source link

fix function capitalization in apA.md #1785

Closed adamyala closed 2 years ago

adamyala commented 2 years ago

Addresses #1784

I already searched for this issue.

Edition: 2nd

Book Title: Scope & Closures

Chapter: Appendix A: Exploring Further

Section Title: Are Synchronous Callbacks Still Closures?

Problem: Function name capitalization throws error. document.getElementByID should be document.getElementById, note the lowercase d at the end. document.createELement should be document.createElement, note the lowercase l.

Link to file with error: https://github.com/getify/You-Dont-Know-JS/blob/fcbd9b8d965f9c97508906c5739d4e919b067b0d/scope-closures/apA.md#synchronous-closure