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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the typeof an ES6 class?

A

A function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is “refactoring”?

A

Refactoring is the process of restructuring existing code without changing its external behavior

How well did you know this?
1
Not at all
2
3
4
5
Perfectly