The forEach method iterates through each array item and executes a block of code. It will complete when it has gone through every item in the array.
To fork the fiddle and follow along: https://jsfiddle.net/easyjs/63svc12y/
I hope you enjoy the video and if you have any questions, please ask in the comments below. If you have any requests feel free to let me know. Thanks for watching and remember to subscribe!
Visit my website: https://www.easyprogramming.net
Subscribe on YouTube: https://www.youtube.com/c/nazmusnasir
Support me on Patreon: https://www.patreon.com/nazmus
Follow me on Twitter: https://twitter.com/NazmusN
Like me on Facebook: https://www.facebook.com/EasyProgrammingNet
Check out my Github: https://github.com/naztronaut