Thanks Manolo! And glad you found it helpful!
Totally, passing object is super cool! which kinda acts like named parameters where you don't have to worry about the order. I believe this is what you're referring to:
// Boo, arguments must be in specific order function meal(protein, carb, veggie){ } meal('π₯©', 'π', 'π₯¦') // Yay, arguments can be in any order function meal2({protein, carb, veggie}){ } meal2({carb: 'π', veggie: 'π₯¦', protein: 'π₯©'})
I have a tidbit on it as well > samanthaming.com/tidbits/18-named-... π
Yup that was exactly it :) I'll check it out
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks Manolo! And glad you found it helpful!
Totally, passing object is super cool! which kinda acts like named parameters where you don't have to worry about the order. I believe this is what you're referring to:
I have a tidbit on it as well > samanthaming.com/tidbits/18-named-... π
Yup that was exactly it :) I'll check it out