Html Css js Frontend projects
9.65K subscribers
998 photos
135 videos
64 files
171 links
Hello everyone you can learn interesting facts about coding in this channel πŸ’»

Perfluence
Download Telegram
πŸ”° JavaScript Quick Tips

Today we’ll look at #javascript simple tips and tricks. 

Here’s a breakdown: 
1. Filter unique values 
2. Convert to boolean 
3. Convert to string 
4. Convert to int 
5. Convert float to int 
6. Remove last digits 
7. Truncate an array 
8. Last item in an array 

If these tips were useful save the post for later! Follow for 
more tips and tricks like these
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
πŸ”° CSS Tip

Do you have an image that is not exactly the same size as what you want to render it as?

Just turn on the object-fit propery to cover for the image element!

This property ensures that irrespective of the dimension of the image element, the contents fully covers the element without any distortion.

πŸ‘‰ Without this, the content would be stretched to fit the element
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”° JavaScript Tip πŸ’‘: Add properties to an object based on a condition.
πŸ”° 7 JavaScript Concepts You Can’t Miss