Skip to content

boglarkasebestyen/javascriptmas2021

Repository files navigation

What is JavaScriptmas?πŸŽ„

JavaScriptmas is a 24-day long, daily coding challenge organized by the Norwegian online coding school, Scrimba, starting from December 1st until December 24th, 2021. It strictly consists of JavaScript exercises, as its name suggests.

In this repository I'm committing all of my solutions to this year's exercises. My last year's submissions can be viewed here.

Scrimba's Advent Calendar containing all of the exercises can be found here.

Day 1 - Countdown to Christmas

  • Get today's date (only the day)
  • Calculate remaining days
  • Display remaining days

Solution here.

Day 2 - Toggle Christmas Theme

  • Write a new "snow" theme
  • Add the functionality to switch / toggle between "christmas" and "snow" themes

Solution here.

Day 3 - Don't Scare Your Relatives

  • Write a function to fix the UI problems with this Christmas message (change the message and switch between themes)
  • Write a new theme
  • Run the function when the Fix button is clicked

Solution here.

Day 4 - Shopping Checklist

  • For each item in the items array, create a div with a class of "checklist-item", which contains a checkbox input and corresponding label
  • Make sure that the shopping list can render a checkbox for all the items, even if new items are added to the items array

Solution here.

Day 5 -

  • Write a function to display a random greeting, from an array, in the card.

Solution here.

Day 6 -

Day 7 -

Day 8 -

Day 9 -

Day 10

Day 11 -

Day 12 -

Day 13 -

Day 14 -

Day 15 -

Day 16 -

Day 17 -

Day 18 -

Day 19 -

Day 20 -

Day 21 -

Day 22 -

Day 23 -

Day 24 -