Unsectioned

Preview this deck

What is a Spread Operator?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

6

All-time users

7

Favorites

0

Last updated

5 months ago

Date created

Nov 15, 2020

Cards (2)

Unsectioned

(2 cards)

What is a Spread Operator?

Front

Used to combine multiple arrays or objects with with the ...

EG.

list1=[a,n]

list2=[b,c]

 

combined = [...list1,...list2, 'anything else you want to add']

Back

What is a class?

Front

When there is an object with at least on method that will need to be re-used

 

class Person {

constructor(name){

this.name=name;

}

walk(){

console.log("walk")

 

}

}

Back