JavaScript Tip 💡
Did you know that you can use curly braces with switch-statements?
Takeaways:
🔸 More readable
🔸 Establishes their own block scope
#Javascripttip
Did you know that you can use curly braces with switch-statements?
Takeaways:
🔸 More readable
🔸 Establishes their own block scope
#Javascripttip
JavaScript Tip 💡
The nullish coalescing operator will return its right-hand operand when the left side is *null* or *undefined*. Not just falsy.
When working with numbers, this is typically very useful. #Javascripttip
The nullish coalescing operator will return its right-hand operand when the left side is *null* or *undefined*. Not just falsy.
When working with numbers, this is typically very useful. #Javascripttip