Bootcamp Notes – Day 3 (Wed) – React: Week 1 Glossary
React: Week 1 – Glossary
ClassThe class keyword in JavaScript was added in ES6. The concept of a class is common across many programming languages, and means something quite different from the class keyword in CSS/HTML. In programming languages, classes are templates for objects. Using a class, you can create the same object over and over again easily.
|
Class InheritanceClasses in JavaScript can be inherited using the extends keyword. The child class inherits the properties and methods of the parent class. This allows code to be reused for multiple classes.
|
F |
---|
FilterThe array method filter iterates over every item in an array and returns a new array composed of items that returned true from a filtering condition in a callback method applied to each array item.
|
M |
---|
MapA JavaScript array method that iterates over every item within an array and returns a new array that consists of each item with a callback function applied to it. |
MethodA METHOD in Javascript is essentially a function that is stored as an object property. To perform this function, the method has to be called using the proper javascript syntax: objectName.methodName() |
Method ChainingMethod Chaining, refers to repeatedly calling one method after another on an object, in one continuous line of code. The chaining is done by using “dot” notation, in other words, placing a period directly after one method is written and then continuing with the next method and so on. |
O |
---|
ObjectThe only non-primitive data type in JavaScript. An Object can be considered more of a collection of data than a singular data type, consisting of properties and methods, which can be thought of as variables and functions that belong to the object. Objects are central to the paradigm of Object-Oriented Programming, and the concept is not unique to JavaScript.
|
R |
---|
ReduceThe array method reduce iterates over each item in an array while maintaining an accumulator variable that changes at each iteration depending on a given callback function and at the end, returns the accumulator variable.
|
T |
---|
ThisThe JavaScript keyword this refers to the object it is inside. This allows you to accomplish various tasks, such as returning this from a class method definition in order to be able to chain methods.
|