es6-classes Flashcards
1
Q
What is “syntactic sugar”?
A
Code that is written in a simplified way that makes it easier for humans to read or “sweeter” for a human to read.
2
Q
What is the typeof an ES6 class?
A
A function
3
Q
Describe ES6 class syntax.
A
class className {
constructor(thing, thing2) {
this.thing = thing;
this.thing2 = thing2;
}
method1 () {
}
}
4
Q
What is “refactoring”?
A
Taking code that was already written and simplifying or cleaning up the code base to make it easier to continue building additional features. Reduces complexity and makes it easier to understand or improves the performance.