ES6 CLASSES Flashcards
1
Q
What is “syntactic sugar”?
A
Syntax that is readable, organized, makes it easier to interpret, and is related to whatever it is referring to
2
Q
What is the typeof an ES6 class?
A
function
3
Q
Describe ES6 class syntax.
A
class <name> {
constructor (parameters) {
this.whatever = whatever
}
function() {
whatever
}
}</name>
4
Q
What is “refactoring”?
A
Reorganizing code for efficiency, readability