30 Days Of JavaScript

Day 25: Banish Boredom: Day 2

Wrap up

You've finished your first full JavaScript project! Congratulations!

The best way to get better at coding is to write your own code. Here are three ways you can improve this project.

  1. When the page loads have the button save "Bored" but then switch to "Still Bored" after the next activity suggestion loads.
  2. Make sure a user isn't shown an activity that is currently in their saved activities list. You can use the key property to check this. If the fetch returns an activity the user has saved then request another.
  3. Save a list of all the activities the user has voted on and make sure not to show them the same one twice. Same basic principle as above, however you'll need to create another list in LocalStorage of all the ones the user has voted on.

You can find the full source code for this project on GitHub.

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