es6 classes Flashcards

1
Q

What is “syntactic sugar”?

A

In computer science, syntactic sugar is syntax within a programming language that is designed to make things easier to read or to express:
It makes the language “sweeter” for human use: things can be expressed more clearly

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

functions.

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(name) {
        this.name = name;
    }
    getName() {
        return this.name;
    }
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is “refactoring”?

A

In computer programming and software design, code refactoring is the process of restructuring existing computer code—changing the factoring—without changing its external behavior.

improves design while the functionality remains the same

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