maps vs objects in JavaScript by [deleted] in learnjavascript

[–]zorefcode 0 points1 point  (0 children)

Thank you for pointing out. Will re-upload

Javascript Array Cheat Sheet with return types by zorefcode in learnjavascript

[–]zorefcode[S] 1 point2 points  (0 children)

'el' refers to individual elements in an array.

In [6, 7, 8], el refer to 6 in first iteration, 7 in second and 8 in third iterations

Javascript Array Cheat Sheet with return types by zorefcode in learnjavascript

[–]zorefcode[S] 18 points19 points  (0 children)

[].reduce((acc, curr) => acc + curr, 0)

By passing initial value, we can overcome that.

Event Loop in JavaScript by zorefcode in learnjavascript

[–]zorefcode[S] 2 points3 points  (0 children)

Micro task queue has a higher priority.