es6-classes Flashcards

1
Q

What is “syntactic sugar”?

A

Code that is written in a simplified way that makes it easier for humans to read or “sweeter” for a human to read.

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 className {
constructor(thing, thing2) {
this.thing = thing;
this.thing2 = thing2;
}
method1 () {
}
}

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

What is “refactoring”?

A

Taking code that was already written and simplifying or cleaning up the code base to make it easier to continue building additional features. Reduces complexity and makes it easier to understand or improves the performance.

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