JavaScript Values Vs References

preview_player
Показать описание
JavaScript is a high-level language, which makes it easy to learn but easy to introduce bugs if we don't know what is happening behind the scenes. In this video, we take a look at the differences between values and references to values so we can avoid bugs that may occur by accidentally mutating values.

🌎 Follow me here:
Рекомендации по теме
Комментарии
Автор

Need more microservices and more complex stuff 🔥

saurabh
Автор

Thank you for the thorough explanation!

SonyaSakayev
Автор

Really like your way of explaining things. Very thorough. Keep it coming and thanks!

Felipe-
Автор

2:10 I thought he said "and this is where we can run into some dogshit" 🤣😂 had to watch it back to realise he said "gotchas"

Ctrl_Alt_Elite
Автор

Just use JSON object methods like parse( ) and stringify( ) or use newly added structuredClone( ) function

nikman
Автор

I actually like revisiting the fundamentals

Felipe-
Автор

Curious to what techonology did you use to generate such beatiful slides

Felipe-
Автор

Is using libraries as lodash really safe ? I have some mutaging problem in development, I prefer solving it with javascript native work around ( spread operator), since lodash is quite heavy and hide the complexity behind mutation. But native solution looks like it is not powerfull enough to deal with deeply nested object with a objects and arrays. Is there someone here who could have a suggestion ? ( works but it's not optimized for memory and my typeScript refuse the use of structuredClone().
Thx for all your videos, just to let you know, I built my rest API on your fastify videos ;-)

loicheaven
Автор

This stuff gets really nasty when you’re dealing with objects within objects and I’m yet to find an elegant solution. Anyone have any suggestions?

Lucas-gten