JavaScript Refresher Flashcards

1
Q

var

A

creates variables

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

const

A

constant values: variable’s value that don’t change

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

let

A

variable values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
const myFnc = () => {
...
}
A

arrow functions

• No issues with the “this” keyword

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

How is a class created?

A

A class is created with the class keyword and a class can have both properties and methods.

class Person {
          name = 'Max'

}

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