Link to Code Pen: (https://codepen.io/Aaron3Zz/pen/ZEwOyYm)
Coding exercise on Github: (Github Link)
Learning Log:
This week, I learnt how to use class to define property, like characters, dogs, and so on. It was beneficial to know that attributes of a class can be sorted in that way, and it was easier for me to address them. Also, I learnt how to incorporate functions inside a class element.
What’s more, I learnt how to use pure functions and also functions, like map(), reduce(), filter() and so on. I found it really interesting to see how function can be written in different ways, and there are ways to make the code clear and concise. However, I found chapter #10 was relatively hard to understand. I believed that I still need time to understand those different ways to write a function.
Nevertheless, I learnt how to user DOM elements and also how to create IDs in HTML.