DEV Community

Deeptiman Mallick
Deeptiman Mallick

Posted on

3

Merry #JavaScriptmas, Devs!

In last month of the scariest year of our generation, Scrimba launched the #JavaScriptmas challenge to divert our mind from loads of crap happening in the world, while strengthening our JavaScript knowledge.

Along with thousands of JavaScript enthusiast around the world, I participated in this exciting challenge. Some challenges were easy. Some were little challenging, but most importantly, it helped me polish my coding brain.

Here are my solutions to the challenges. Please check them out and leave suggestions in comments if you have any.

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 of odd Fibonacci numbers
10. Adjacent Elements product
11. Avoid obstacles
12. Valid Time
13. Extract Each kth
14. Maximum adjacent different
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

Merry Christmas, everyone! πŸŽ‰

Namaskar πŸ™πŸΌ

Top comments (0)

typescript

11 Tips That Make You a Better Typescript Programmer

1 Think in {Set}

Type is an everyday concept to programmers, but it’s surprisingly difficult to define it succinctly. I find it helpful to use Set as a conceptual model instead.

#2 Understand declared type and narrowed type

One extremely powerful typescript feature is automatic type narrowing based on control flow. This means a variable has two types associated with it at any specific point of code location: a declaration type and a narrowed type.

#3 Use discriminated union instead of optional fields

...

Read the whole post now!

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay