More Flashcards

1
Q

https://launchschool.com/exercises/cf45546d
Specifically, how do you implement the cat introduce method

A

introduce() {
return ${super.introduce()} Meow meow!;
}

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

https://launchschool.com/exercises/6d2071cb

A

https://launchschool.com/exercises/6d2071cb

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

https://launchschool.com/exercises/10d9143d

A

https://launchschool.com/exercises/10d9143d

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

https://launchschool.com/exercises/b6dd0e20

A

https://launchschool.com/exercises/b6dd0e20

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

https://launchschool.com/exercises/2b521c67

A

https://launchschool.com/exercises/2b521c67

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

https://launchschool.com/exercises/a94dfdc1

A

Anywhere outside a function, the keyword this is bound to the global object. If the keyword is used inside a function, then its value depends on how the function was invoked.

https://launchschool.com/exercises/a94dfdc1

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

Explain why this doesn’t work:
let franchise = {
name: ‘How to Train Your Dragon’,
allMovies: function() {
return [1, 2, 3].map(function(number) {
return this.name + ‘ ‘ + number;
});
},
};

A

[incomplete]

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

https://launchschool.com/exercises/4455e4ab
Do you need super()?

A

No
Why?
Using super is always redundant. If the subclass doesn’t have a constructor function, it implicitly calls super with any passed arguments.

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

https://launchschool.com/exercises/0927135d

A

https://launchschool.com/exercises/0927135d

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

https://launchschool.com/exercises/9e05ae71

A

https://launchschool.com/exercises/9e05ae71

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

https://launchschool.com/exercises/b745f609

A

https://launchschool.com/exercises/b745f609

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

https://launchschool.com/exercises/7f3cd322

A

https://launchschool.com/exercises/7f3cd322

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

https://launchschool.com/exercises/0a8aaa5c

A

https://launchschool.com/exercises/0a8aaa5c

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

they serve as placeholders for functions and methods to be written or removed later. They don’t have any useful functionality yet; most are either empty or return a constant value.

A

//STUB
https://launchschool.com/lessons/93a83d87/assignments/56f620e5#:~:text=and%20earlier%20are-,stubs,-%3B%20they%20serve%20as

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

a general outline of how the program flows. They take a high-level view, focusing on the general logic of the program; they don’t concern ourselves with details like what it means for the game to be over.

A

//SPIKE
https://launchschool.com/lessons/93a83d87/assignments/56f620e5#:~:text=and%20write%20a-,spike,-%2D%2D%20some%20exploratory%20code

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

https://launchschool.com/exercises/1becc424

A

https://launchschool.com/exercises/1becc424

17
Q

Destructure assign an object but change the variable names

A

let options = {
title: “Menu”,
width: 100,
height: 200
};

let {width: w, height: h, title} = options;