I love the article. Heard of descructuring before but never really understood it until now. Thanks for posting. Just one comment about this bit of code:
Would this not console log the Pizza and Hotdog? Or need to add three commas to the destructuring before pineapple to ignore the first three items - as you discuss later - if pineapple and strawberry is required.
I love the article. Heard of descructuring before but never really understood it until now. Thanks for posting. Just one comment about this bit of code:
Would this not console log the Pizza and Hotdog? Or need to add three commas to the destructuring before pineapple to ignore the first three items - as you discuss later - if pineapple and strawberry is required.
Hi! I'm happy that my content helps you understanding JavaScript. That's nice to hear.
Indeed you're right about the pizza and the hotdog. My example on that part was wrong. I corrected it. Thanks for pointing it out!