JS - Factory Functions

Minsoo·2021년 7월 23일
0

JS

목록 보기
3/9
post-thumbnail

☄️ Factory Functions

  • A factory function is a function that returns an object and can be reused to make multiple object instances.
  • It can also have parameters allowing us to customize the object that gets returned

Property Value Shorthand

Destructured Assignment

  • In destructured assignment we create a variable with the name of an object’s key that is wrapped in curly braces { } and assign to it the object.

참고자료

https://www.youtube.com/watch?v=jpegXpQpb3o

https://www.codecademy.com/courses/introduction-to-javascript/lessons/advanced-objects/exercises/factory-functions

profile
Hello all 👋🏻 📍London

0개의 댓글