-Describe one thing you’re learning in class today.
I learned on how to manipulate objects. Few methods used include .splice(), .concat(), and .map().
-Can you describe the main difference between a forEach loop and a .map() loop and why you would pick one versus the other?
The main difference is that .map() utilizes return values and actually returns a new Array of the same size while forEach does not.
-Describe event bubbling.
Event bubbling means exactly what it states. It occurs when a user interacts with a nested element and the event propagates through all of the ancestor elements. Its like a timeline or order of how elements are accessed during user interaction. For example, when a user clicks the button the event first fires on the button itself, then “bubbles” up to the parent div, and then up to the ancestor div.
-What is the definition of a higher-order function?
Its basically a “super-hero” function. It can take another function as an argument, or can return a function as a result.
- ES6 Template Literals offer a lot of flexibility in generating strings, can you give an example?
Template Literals are a new ES6 feature that allows us to work with strings in a novel way compared to ES5 and below. For example we can just use backticks instead of single or double quotes:
const a_string = `something`
They are objects that are turned into objects. The user redefines as needed. When you assign values to keys in a variable of ‘typeArray’, the array is transformed into an object, and it loses the attributes and methods of Array.
-What is array?
It is an object that lets you store multiple values in a single variable.
Because it may cause conflict. Its best practice to stick to  when using arrays.