The nullish coalescing operator returns the right side only when the left side is null or undefined else returns the left side. example: session.user?.email ?? "Not Logged In"
Great video, super good revision, thanks! I would just add that an important difference between an arrow function and a traditionally function is that the arrow function does hold its own this state, which help keep things like dealing with this much simpler. In other words the arrow function maintains the same this as in the scope above it.
Thank you very much, I was learning react and these stuff were used a lot and I didn't really know what are they, I only saw how they work. Useful stuff
The old styled function definition vs. the new styled arrow functions still have some major differences, like the auto env. binding. It's pretty important, especially in React.
Great video, thanks. If I can allow myself some criticism: default exports does not mean that you are exporting only one object, it means that there is one thing among your exports that has no name. You can very well export both a default object and some other objects, as long as you name them.
I’m wondering, as a fronted ; i mostly use functions/conditions/and styling the page ... But I use the other JavaScript method when I leetcooding etc. ; my question is what I’m missing here and why I’m forced to learn it if I’m Berle used it !!