10 useful JavaScript tricks you didn't know in 10 minutes

preview_player
Показать описание
Learn JavaScript tricks and tips that can be very helpful while coding using JS. You will not regret less than 10 minutes spent on this video.

===============================

📰 If you prefer written tutorials, you will find 25+ lessons on Bootstrap here -

🎁 Join our mailing list & receive exclusive resources for developers

⭐ Support creation of open-source packages with a STAR on GitHub

👨‍👩‍👧‍👦 If you have any questions - don't hesitate to ask on our Facebook group:

🎓 Learn responsive web design with the latest Bootstrap 5

📥 Download Material Design for Bootstrap - FREE open-source UI KIT

___________________

Show us some love ↓

#javascript#tricks#js#programming#dev
Рекомендации по теме
Комментарии
Автор

I hope you liked the video. If you are already here in the comment section, I invite you to let me know what other videos would you like to see in the future. Also, share any other feedback that you have on this video!

I don't run ads on tutorials - the only value I get is your engagement in the MDB community.

So if you would like to show your support:
- Encourage more people to Keep Coding ---> Send this video to one person
- Stay tuned for new content ---> Subscribe & ring the bell

In the description, you will find links to some useful, free resources:
📥 Download Material Design for Bootstrap - FREE open-source UI KIT
🎓 Learn responsive web design with the latest Bootstrap 5 (full 1.5H course)
🎁 Join our mailing list & receive exclusive perks (free stuff that is normally behind a paywall)
⭐Support the creation of open-source packages with a STAR on GitHub
👪 If you have any questions - don't hesitate to ask on our Facebook group

Thank you for your support!

Mdbootstrap
Автор

The alter way to do 1:30 function doSomething(arg1 = 32){}

leomonz
Автор

Great video man! Definitely gonna start using some of these.
I love using the if, else shortener
age < 18 ? "Kid" : "Adult"

evsz.
Автор

for last element of an array I use arr[arr.length-1]

faizshaikh
Автор

these are great tips.would like to see more of this type of content from your channel.subscribed!

Gogies
Автор

This function is useful if you want the ordinal of a number. i.e 21st or 11th.
function ordinal(n){
ord = [, 'st', 'nd', 'rd'][n%10];
nth = ([11, 12, 13].includes(n%100) || ord === undefined) ? 'th' : ord;
return n + nth;
}
Great when dealing with dates.

dar
Автор

First of all thanks to you for this really helpful video, here is one suggestion please explain slowly so that we get enough time to absorb

prabhakarmishra
Автор

Thank you for the great content, master. Tell me, what do you use for editing and screenfiliming?

snowsol
Автор

the 2nd tip can be used for other things but for the function default you can just do this:
```
function doSomething(x = 32) {
console.log(x);
}
```
so the default for x would be 32

anaycoding
Автор

You use examples from documentation, but without explaining. What the point of video?

irgik