BlogPost_204
-Describe one thing you're learning in class today.
We are learning what high order functions are.
-Can you describe the main difference between a forEach loop and a .map() loop and why you would pick one versus the other?
-Can you describe the main difference between a forEach loop and a .map() loop and why you would pick one versus the other?
You use map when you want to do something to an array or a list and forEach when you want to do something with that array.
-Describe event bubbling.
It relates 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(a click, for example).
-What is the definition of a higher-order function?
-ES6 Template Literals offer a lot of flexibility in generating strings, can you give an example?
-What Is an Associative Array in JavaScript?
-What is array?
-Why Never Use New Array in JavaScript?
-Describe event bubbling.
It relates 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(a click, for example).
-What is the definition of a higher-order function?
A function that does at least one of the following: a)takes one or more functions as arguments. b)returns a function as its result.
-ES6 Template Literals offer a lot of flexibility in generating strings, can you give an example?
console.log('string text line 1\n' +
'string text line 2');
// "string text line 1
// string text line 2"
-What Is an Associative Array in JavaScript?
A mechanism that shares a lot of superficial similarity to the array is the associative array or hash, which in JavaScript is actually a class of object rather different than real arrays in that they can be indexed by non-numeric objects (like strings).
-What is array?
An array is collection of items stored at contiguous memory locations. The idea is to store multiple items of same type together. This makes it easier to calculate the position of each element by simply adding an offset to a base value, i.e., the memory location of the first element of the array (generally denoted by the name of the array).
-Why Never Use New Array in JavaScript?
This question is too vague. Please rephrase.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home