ES6 Explained
ES6 is a new way to use JS, and has more advanced versions of many functions already used. It is building upon the things that other functions such as the event listeners couldn’t do. As an example of this, the ForEach function, which listens for variables. It also recognizes the value, and other components in parameters. It is like a different version of an Event Listener, in the sense that it “listens” for variables, values, or code. The variable/parameters can be of any name, or value. The var can even be shortened in the forEach function, for example, var numbers can become nums in the parameter section. A map is an object. But it functions like an array, being a blend of the two. There are key value pairs, but the pairs get added to the array which is the map. These two are essentially an improvement, or combination of things that already exist in JavaScript. However, they allow for more advanced overall functions. This will help in making more advanced games, or making more advanced tests and calculations. The ability to combine advanced functions with the ease and convenience of using the Event Listener is great, and this is great for creating more advanced games.