Join the full course: https://learnwebcode.teachable.com/p/...
Day 0: Intro • The 10 Days of JavaScript: Day 0
Day 1: Getting Started • The 10 Days of JavaScript: Day 1
Day 2: Functions • The 10 Days of JavaScript: Day 2 (Fun...
Day 3: Objects • The 10 Days of JavaScript: Day 3 (Obj...
Day 4: Arrays • The 10 Days of JavaScript: Day 4 (Arr...
Day 5: Making Decisions • The 10 Days of JavaScript: Day 5 (Mak...
Day 6: Higher-Order Functions • The 10 Days of JavaScript: Day 6 (Hig...
Day 7: Returning vs Mutating • The 10 Days of JavaScript: Day 7 (Ret...
Day 8: Scope & Context • The 10 Days of JavaScript: Day 8 (Var...
Day 9: Misc. Must Know Info • The 10 Days of JavaScript: Day 9 (Mis...
Day 10: Web Browser Practice • The 10 Days of JavaScript: Day 10 (Br...
Day 11: Node.js and the Server • Learn JavaScript: Full-Stack From Scr...
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:
Twitter: / learnwebcode
Facebook: / brad-schiff-1542576316048470
Watch video The 10 Days of JavaScript: Day 8 (Variable Scope & Context / this keyword) online without registration, duration hours minute second in high quality. This video was added by user LearnWebCode 06 November 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 36,643 once and liked it 1.1 thousand people.