es6-classes-Q&A Flashcards
1
Q
What is “syntactic sugar”?
A
is designed to make things easier to read or to express. It makes the language “sweeter” for human use
2
Q
What is the typeof an ES6 class?
A
function
3
Q
Describe ES6 class syntax.
A
Class newClass { constructor(parameters) { } methodDefinition(parameters) { } }
4
Q
What is “refactoring”?
A
process of restructuring existing computer code—changing the factoring—without changing its external behavior