JavaScriptmas

·

3 min read

This year Scrimba ran a JavaScript advent calendar called JavaScriptmas. Every day was a new challenge, some just to write a function, some included (optional) CSS too.

In my timezone, the email about the day's challenge came in early in the morning, so it would get me into coding for that day, whatever time I started. And the difficulty (mostly) gradually ramped up, so it never felt like a big jump. Although sometimes it was trying to understand what the challenge wanted after an 11 hour day at work that was the hardest part!

My favourite challenge was to create a carousel. This was partly because I thought a carousel was hard and found it wasn't - when I had a look at what Gary Simon had set up I thought "Oh, that's so easy". And also because I had fun getting it work in the simplest way possible and then adding extras and making sure it would scale if you added or removed images, or changed the size of the carousel.

In all I enjoyed the challenges - it was a fun way to spend some time in December and I got a sense of achievement every day as I completed the challenge. I was already subscribed to the weekly web dev challenge, which is similar. And one a week is about right, and makes me feel like I have plenty of time to get it done.

For those interested (and my reference) here are all my solutions:

  1. Candies

  2. Deposit Profit

  3. Chunky Monkey

  4. Century From Year

  5. Reverse a String

  6. Sort by Length

  7. Count Vowel Consonant

  8. The Rolling Dice

  9. Sum Odd Fibonacci Numbers

  10. Adjacent Elements Product

  11. Avoid Obstacles

  12. Valid Time

  13. Extract Each Kth

  14. Maximal Adjacent Difference

  15. Carousel

  16. Insert Dashes

  17. Different Symbols Naive

  18. Array Previous Less

  19. Alphabet Subsequence

  20. Domain Type

  21. Sum of Two

  22. Extract Matrix Column

  23. Social Media Input

  24. Test Your Agility