My full premium JavaScript course will be available soon, subscribe to be notified as soon as it launches.

Day 0: Intro
Day 1: Getting Started
Day 2: Functions
Day 3: Objects
Day 4: Arrays
Day 5: Making Decisions
Day 6: Higher-Order Functions
Day 7: Returning vs Mutating (coming soon)
Day 8: Scope & Context (coming soon)
Day 9: Misc. Must Know Info (coming soon)
Day 10: Web Browser practice (coming soon)

I’m using document.write() as a quick and dirty way to see/test values instead of always using console.log(). Please do as I say and not as I do ๐Ÿ™‚ Do not use document.write() for anything beyond this simple testing case and outside of CodePen I’d say never use it. In future lessons we will learn far superior ways of adding HTML content to the page from JavaScript. Also, in the real world we would never want to repeatedly update the page for each item like this, it’s much better to use JavaScript to create one big string of HTML content (could concatenate to a string variable from within a while loop or forEach or even use array.reduce()) in memory first and then only add it to the page all at once. However, that’s getting into efficiency and web browser performance which are not topics I wanted to address this early in the course ๐Ÿ™‚

Follow me for cat pics:

Press here: Programming for more similar videos

Tags: , , ,

Watch more:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.