The forEach() method executes a provided function once for each element in the array, and you can use this method with an array of numbers, strings and objects too.
In this tutorial, I've explained the forEach() method with examples. Hope you'll love it and don't forget to like and share this tutorial.
#javascript