It's actually how var works with the block, closures and the how settimeout works with event loop.
var block ko nahi manta hai, wo isko ignore karega.
Instead of creating a block for every variable and storing it, the previous value will be replaced with the new one in case of var. So har loop me new value aayegi aur last me ik jab wo ++ karega 3 will be 4 and the output will be 444.
Message It's actually how var works with the block, closures and the how settimeout works with event loop.
13 décembre 2025À proximité dans le fil
Sce message
A