es6-classes Flashcards

1
Q

What is “syntactic sugar”?

A

Syntax designed to make things easier to read or to 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

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;
class's name;
opening { ;
constructors;
methods;
closing } ;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is “refactoring”?

A

Rewrite the code with less complexity but with the same external behavior.

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