Today we reviewed Javascript variables, loops, and functions.
While reviewing things we covered code style and the Airbnb code style guide.
Then we talked about callbacks and the array.forEach
function.
Finally, we looked at global scope and our
array.forEach
I know that there's still alot of confusion over Javascript in terms of variables, functions, loops and more. So if you feel like that, check out these links:
Tonight's assignment is to recreate the same beer layout as homework 2.1 but this time we will be using dynamic data from Javascript and using Handlebars templates.
On top of this the different layouts will be triggered by a button click that changes a classList
so that the styles can toggle from grid to list.