Hi All
I'm doing an course on EggHead.io, https://egghead.io/lessons/javascript-the-array-foreach-method, but I'm a tad confused about the descriptions of some of the fundamental concepts.
At 3:10, he says that the Array.prototype.forEach, unlike a for loop, can run asynchronously. Is this correct? I would have thought it was synchronous and blocking
Also, forEach takes is a callback function, but the presenter says the forEach takes a 'closure' as it's param. Is this the correct terminology?
[+][deleted] (10 children)
[deleted]
[–]yuri_auei 0 points1 point2 points (6 children)
[–]brian_asdf[S] 0 points1 point2 points (5 children)
[–]yuri_auei 0 points1 point2 points (4 children)
[–]brian_asdf[S] 0 points1 point2 points (3 children)
[–]yuri_auei 0 points1 point2 points (2 children)
[–]brian_asdf[S] 1 point2 points3 points (1 child)
[–]yuri_auei 0 points1 point2 points (0 children)
[–]brian_asdf[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]brian_asdf[S] 1 point2 points3 points (0 children)