Day 12 - Getters & setters

14/05/2020 15 min Temporada 1 Episodio 12

Listen "Day 12 - Getters & setters"

Episode Synopsis


Wrote callback function as an arrow function, using the forEach method to print an array of player names.

TIP - Watch a tutorial video, make a “coding to do” list of things youve just watched by commenting in your app.js file.  Then try to do each task without watching the video.  Re-watch video only if necessary.

Worked and getting and setting attributes

Now on and and removing classes.  Got a good challenge coming up re: adding certain classes to a group of <p> tags based on the text content of each element. I.e. error, success, none.

Got some great help on the slack group from Sonaksh with regards to error.style.properties not working correctly.  Turns out camelCase was the issue