DEV Community

katongole Isaac
katongole Isaac

Posted on


A simple JavaScript Challenge

Greetings gang, I did an assesment on a certain platform and i came across this simple question.

What would be its output?

let num1 = 4;

let num2 = 2;

num2 *= num1 + num2 / num2 * num1;


Enter fullscreen mode Exit fullscreen mode

Latest comments (1)

davebrogan profile image
Dave Brogan


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.