es6-classes Flashcards
1
Q
What is “syntactic sugar”?
A
Syntactic sugar is syntax within a programming language that is designed to make things easier to read or express
2
Q
What is the typeof an ES6 class?
A
A function
3
Q
Describe ES6 class syntax.
A
Class keyword, name of class, followed by curly braces for the class declaration. Within the curly braces, constructor keyword followed by names in parentheses, then curly braces. Can also have a function followed by curly braces.
4
Q
What is “refactoring”?
A
Refactoring is the process of restructuring existing code without changing its external behavior