
Web development tips & tricks daily! 150K+ Followers on Instagram
Joined October 2022
- Tweets86
- Following66
- Followers163
- Likes120
How to style the scroll bar using the newly available scrollbar-color property in #CSS !
1
57
Still using the traditional way to access items from the right end of an array? 🫥
Try the new .at() method. This can be used to access elements from an array similar to [] notation, but negative values can be used to access items from the right end
#javascript #frontend
2
37
Explanation ✨
The important part is the second selector. This is possible due to a recent addition to CSS, the :has pseudo selector. This helps to select a parent when any of its children matches a particular criteria.
1
1
27
Roses are red
Violets are blue
Always use strict equals
Because '2' == 2 is true
#ValentinesDay #javascript
1
100
My single most top tip for #code quality is this:
if (...)
if (...)
if (...)
🛑✋
🔸 Avoid nesting code more than three levels deep 🔸
Once you get to three or four levels, it's probably time to break down your code into smaller units! 🤏














