es6-classes Flashcards

1
Q

What is “syntactic sugar”?

A

syntax within a programming language that is designed to make things easier to read or express. Make it easier to use

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 - followed by the name is a capital starting letter. then the first thing will be the constructor taking in parameters and assigning the variables to this.parameter. then followed by the constructor will be the methods for it which do not require a function keyword

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

What is “refactoring”?

A

Intended to improve design implementation or structure of software while preserving its functionality

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