π° 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
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
π1
π
Objects as Structs in JavaScript!!
While JavaScript does not have a direct equivalent to structs, its objects can be used in similar ways to group related data and behavior.
This flexibility allows for a wide range of programming styles, including object-oriented programming.
β
The Modern React Bootcamp (Hooks, Context, NextJS, Router)
Just published! Follow the same curriculum I teach my students in SF. 10+ projects including one HUGE application!
πβ
βοΈCourse link on Udemy π
π¨π»βπ»Course download link π
βοΈSkip the links and access the courseπ
Just published! Follow the same curriculum I teach my students in SF. 10+ projects including one HUGE application!
πβ
βοΈCourse link on Udemy π
https://www.udemy.com/course/modern-react-bootcamp
π»The full course with its latest update
πSize: 8 GB
π€Price: $70, free download
π₯Download server Telegram
πenglish language
πTranslation: Yes files vtt
π¨π»βπ»Course download link π
https://linkjust.com/Fdaj2JSU
βοΈSkip the links and access the courseπ
https://youtu.be/ZhFVHteAcY4?si=nGzRSRCDP6tXBL84
π1π1π
1
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
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
JavaScript is everywhere. Millions of webpages are built on JS.
A few examples will help you understand the JavaScript Async-await function in this post.
A few examples will help you understand the JavaScript Async-await function in this post.
β€2π₯1