+ 3
different b/w For loop and for each ?
can u please explain
1 Answer
+ 2
//A for loop repeats until a specified condition evaluates to false whereas the forEach() method executes a provided function once for each array element.
can u please explain