15 the most common JavaScript mistakes in 2023 (+ solutions)

preview_player
Показать описание
In this video, I'm going to show you 15 js mistakes that I see too often when I'm doing a code review. Regardless of whether we're talking about junior, middle, or senior developers, I see these bugs everywhere. Learn how to write javascript code in a proper way.

⌨ Source code:

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

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

🎁 Join our mailing list & receive exclusive resources for developers

🎓 Learn responsive web design with the latest Bootstrap 5

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

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

TOP 7 the Most Commonly Used JavaScript Function You Have to Know:

0:45 1. Variable scope
3:15 2. Comparing floats
9:50 3. Using array with named index
10:59 4. Handling NaN
12:53 5. Using a variable as key in objects
15:09 7. Object destructuring
16:37 8. String concatenation
17:46 9. Spread syntax
19:00 10. Confusions about equality
19:57 11. Misusing the Addition Operator for Merging Arrays
21:22 12. Using Equality Operators Incorrectly
22:30 13. Missing parameters in function calls
24:10 14. Array Iterations With ‘for-in’ Loops
25:30 15. Not using "strict mode"

---------------

Show us some love ↓

#js#tips#tutorial
Рекомендации по теме
Комментарии
Автор

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
Автор

David is the man!!
Love your accent.😃

archiem
Автор

I love how "2" + "2" is "22" and "22" - 2 is 20 😂

hache_raw
Автор

And then, there is Internet Explorer... No template literals, no spread syntax and no default parameter value in functions... And sadly somethimes you have to support it...

hache_raw
Автор

Most common JS mistake is using it in the first place.

ukyoize