I love those three little dots in JavaScript. Mat Marquis has a nice article covering them (“destructuring” as it were) nicely. And agreed there are plenty of times they can be confusing. What always gets me is that sometimes it is used to “pluck off” the remaining the values from an array or object (which is “rest”), and sometimes it’s used to “splat on” all the values from an array or object (which is “spread”).
A Complete Guide to Beginning with JavaScript
This guide serves as an introduction to learning JavaScript, covering necessary prerequisite knowledge and addressing common obstacles. It highlights JavaScript’s origins, essential concepts, and practical applications across different environments.