Javascript Tips and Tricks 2023 - Improve Your Code

  Рет қаралды 2,646

Monsterlessons Academy

Monsterlessons Academy

Күн бұрын

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.
► Download the FREE PDF Now. Pass Your JS Interview with Confidence! ➡️ monsterlessons...
► Join Thousands of Learners! Start My Advanced Courses Today ➡️ monsterlessons...
► Boost Your Knowledge! Read My Popular Blog Posts Here ➡️ monsterlessons...
LOOKING FOR THE VIDEO EDITOR? ➡️ ekaterina.kochergina.business@gmail.com
MOST POPULAR COURSES
► Javascript interview questions ➡️ monsterlessons...
► Typescript interview questions ➡️ monsterlessons...
► React interview questions ➡️ monsterlessons...
► Angular Interview Questions ➡️ monsterlessons...
► Angular Testing ➡️ monsterlessons...
► React Testing ➡️ monsterlessons...
► Building real project with Angular + NgRx ➡️ monsterlessons...
► Building real NestJS API ➡️ monsterlessons...
► Building real fullstack project ➡️ monsterlessons...
► RxJS Crash Course ➡️ monsterlessons...
SERVICES THAT I'M USING
Learn new skills anytime with Skillshare. ➡️ skillshare.eqc...
Build your website effortlessly with Squarespace ➡️ squarespace.sy...
Get fast delivery and Prime Video with Amazon ➡️ www.amazon.com/...
Get affordable domains from Namecheap ➡️ namecheap.pxf....
Protect your privacy with NordVPN today! ➡️ nordvpn.sjv.io...
Ultahost: Fast, reliable hosting for your website. ➡️ ultahost.sjv.i...
CONNECT WITH ME!
► TWITTER - / monster_lessons
► INSTAGRAM - / monsterlessonsacademy
► FACEBOOK - / monsterlessonsacademy
► LINKEDIN - / monsterlessons-academy
► TIKTOK - / monsterlessonsacademy
REFERENCES
► Source code - github.com/mon...
This video is NOT sponsored. Some product links are affiliate links which means if you buy something I'll receive a small commission.

Пікірлер: 28
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 жыл бұрын
WATCH NEXT: Javascript Interview Questions and Answers - Dominate Your Next Interview - kzbin.info/www/bejne/rZ-8fHtombRpaJIsi=5DfbGEfhXWiiv0a_
@rastapoile
@rastapoile 2 жыл бұрын
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.
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
Hi in some cases where performance is super important for look wins. In most of the cases readability is more important than performance.
@rastapoile
@rastapoile 2 жыл бұрын
@@MonsterlessonsAcademy thanks for your answer !
@lazargubezkis4329
@lazargubezkis4329 5 ай бұрын
Regarding your example of using a for loop, vs making 3 calls to reduce, map and filter methods - won't the single for loop provide better performance when compared to making these 3 calls?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 5 ай бұрын
Yes it will but the readability is typically bad. Not all code must be performant. If your array is 20 items going for performance doesn't make sense. Obviously if performance is a bottle neck it makes sense to optimize it.
@juantato2012
@juantato2012 3 жыл бұрын
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.
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 жыл бұрын
You are so welcome!
@ayushraj6525
@ayushraj6525 3 жыл бұрын
Awesome video😀
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 жыл бұрын
Glad you enjoyed it
@HoNow222
@HoNow222 3 жыл бұрын
more of this :)
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 жыл бұрын
Will come for sure!
@igorr4682
@igorr4682 Жыл бұрын
you can use !! shorthand for that as well for example let active = !!(isPrd && isEmp);
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Yeap but I don't like !! for some reason as Boolean() is more readable for me.
@PaulaRios-u4c
@PaulaRios-u4c Жыл бұрын
cool video)
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Thanks
@chris_and_music
@chris_and_music 3 жыл бұрын
I only use for loops if I need to break the loop when condition is met
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 жыл бұрын
Yes, or if we need to just call the function for every element without returning anything.
@anacseq
@anacseq 3 жыл бұрын
the inline if is great
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 жыл бұрын
Yeap!
@F.C.Poet_
@F.C.Poet_ Жыл бұрын
thanks
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
You're welcome!
@abdessamadlabouidi4426
@abdessamadlabouidi4426 3 жыл бұрын
thanks.
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 жыл бұрын
You're welcome!
@bakulbrahmbhatt1530
@bakulbrahmbhatt1530 Жыл бұрын
const checkActive = (isActive, isProgrammer) => { return !isActive ? 'inactive' : (isProgrammer? "active programmer" : "active"); }
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Ternary operator in ternary operator is extremely difficult to read and support.
How to Work Effectively as a Programmer | How to Be More Productive at Work
5:39
Monsterlessons Academy
Рет қаралды 1,4 М.
Javascript Clean Code Best Practices - 5 Tips for Coding Good
8:13
Monsterlessons Academy
Рет қаралды 1,4 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
10 JavaScript changes you missed in 2023
5:56
Fireship
Рет қаралды 724 М.
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
Data Structure Queue in Javascript - Learn the Algorithm
8:07
Monsterlessons Academy
Рет қаралды 1,8 М.
7 MUST KNOW JavaScript Tips and Tricks
8:58
dcode
Рет қаралды 22 М.
My top 5 most popular front-end tips
22:07
Kevin Powell
Рет қаралды 74 М.
All The JavaScript You Need To Know For React
28:00
PedroTech
Рет қаралды 694 М.
New Map Javascript Example Tutorial - What Is the Difference?
6:53
Monsterlessons Academy
Рет қаралды 4 М.
Why I Don't Use Semicolons In JavaScript
6:04
Web Dev Simplified
Рет қаралды 100 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН