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

1개의 댓글

comment-user-thumbnail
2024년 9월 14일

Greetings, everyone! Jonny Jackpot is the perfect place for anyone looking for a safe and secure platform to play in Canada. I felt confident knowing that all my personal and financial data is protected. The casino has a large selection of games and an excellent support system that allows you to resolve any issues quickly and efficiently. This is a place where you can enjoy the game knowing that everything is under control. I highly recommend it!

답글 달기