DEV Community

Trishul for Itsopensource

Posted on • Updated on


Optional Chaining

TypeError: Cannot read property '' of undefined has bugged every javascript developer enough. While expecting response from APIs, we need to add a number of && to make sure our code don’t break. This maybe not a problem while dealing with 2 level nested object, but while dealing with large data objects this can be nightmare. The game has been changed with Optional Chaining proposal Stage-4.


Oldest comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.