Blog 204

Lucy alverson
1 min readJun 18, 2021
  1. Regular Expression. Which is a shortcut for finding patterns in data.

2) forEach() executes a provided function once for each array element. map() -creates a new array with the results of calling a provided function on every element in the calling array. You would use the forEach method when you’re only calling an array one time and you would use the .map() if you want to continuously call that element.

3)Event Bubbling related to the order in which event handlers are called when one element is nested inside a second element, and both elements have registered a listener for the same event.

4)A higher order function is a function that receives a function as an argument or returns the function as output.

5)Template literals are string literals allowing embedded expressions. You can use multi-line strings and string interpolation features with them.

let a = 10;
let b = 20;
console.log(`thirty is ${a + b} and
not ${2 * a + b}.`);
// "Thirty is 30 and
// not 60."

6)Associative arrays are objects in JS where indexes are replaced by user-defined keys. They do not have a length property like a normal array and cannot be traversed using a normal for loop.

7)One good reason is because the Array constructor has completely non-intuitive behavior.

--

--