Construct and forEach()

Its a collection of logic componets forming an interactive agent or environment.

Construct is known as self invoking anonymous functions, e.g var x=”hello world” is a contruct known as a variable declared and assignment.

forEach() loop. Infinite loop. Control flow for each (or forEach) is a control flow statement for traversing items in a collection.foreach is usually used in place of a standard for statement.

forEach() method calls a provided function once for each element in an array in order.