es6-syntax Flashcards
What is “syntactic sugar”?
syntactic sugar is syntax within a programming language that is designed to make things easier to read or to express. It makes the language “sweeter” for human use: things can be expressed more clearly, more concisely or as preferred
What is the typeof an ES6 class?
object
Describe ES6 class syntax.
The es6 class syntax replaces function with class, removes the parentheses for parameters from beside the function name, goes into the function and then declares a ‘constructor’ that now carries the parameters or lack of thereof, within the constructor it chains the values of the parameters to this and outside of the constructor appends all the methods necessary for the class
What is “refactoring”?
process of restructuring existing computer code—changing the factoring—without changing its external behavior, intended to improve the design, structure, performance, memory usage and/or implementation of the software (its non-functional attributes), while preserving its functionality