30 Days Of JavaScript

Day 24: Banish Boredom

Wrap up

So far we have made half the app, we can click "Love it", refresh the page, see a new activity and the saved ones.

Tomorrow we will look at:

  • Deleting activities
  • Making the UI update when we press "Love it"

Before wrapping up for the day, lets do some minor house keeping.

onBoredClicked is called in 4 places and with that name only one of them makes sense. Please re-name it fetchNewActivity BUT make it so that the function called when the 'BORED' button is clicked is still called onBoredClicked - this will require you to make a new function called fetchNewActivity and call that from within onBoredClicked.

Time for a quiz

It good to test your knowledge just after learning something new, it solidifies the connections in your mind and identifies any areas that you should go back over.

The Pro version of 30 Days of JavaScript comes with a 10 question multiple choice quiz at the end of each day, if you want to take these quizzes (and get a host of other Pro features) then consider:

Joining Pro today


Go Pro?

If you upgraded to pro, sign in here

  • About
  • Blog
  • Privacy
Looking to email me? You can get me on my first name at allthecode.co