Javascript Tips and Tricks 2023 - Improve Your Code

preview_player
Показать описание
Learn my 5 most used javascript tricks in 10 minutes. Here I want to share 5 most important javascript features to bring your Javascript code to the next level. With this tips you can build scalable, reactive and easy to support Javascript applications.

FOLLOW ME

REFERENCES

RECOMMENDED VIDEOS

STUFF I USE

Disclosures: All opinions are my own. Sponsors are acknowledged. Some links in the description are affiliate links that if you click on one of the product links, I’ll receive a commission at no additional cost to you. As an Amazon Associate I earn a small commission from qualifying purchases.
Рекомендации по теме
Комментарии
Автор

you can use !! shorthand for that as well for example let active = !!(isPrd && isEmp);

igorr
Автор

Great tips, I just watched your TS tutorial on the freecodecamp channel and it saved my life. Thank you so much for putting out this great content. Greetings from Colombia.

juantato
Автор

Hi,

For part 5. Avoid for loops :

In terms of performance, isn't it better to use the For? You only go through the list once, whereas you go through it 3 times with reduce, map and filter.

rastapoile
Автор

I only use for loops if I need to break the loop when condition is met

chris_and_music
Автор

const checkActive = (isActive, isProgrammer) => {
return !isActive ? 'inactive' : (isProgrammer? "active programmer" : "active");
}

bakulbrahmbhatt