Skip to content Skip to sidebar Skip to footer
Showing posts with the label Declaration

Syntax - What Does Square Brackets Around A Variable Declaration Mean

Take the following line of code const [component] = router.getMatchedComponents({ ...to }) Could a… Read more Syntax - What Does Square Brackets Around A Variable Declaration Mean

Destructuring With Nested Objects And Default Values

I'm using destructuring to declare some variables like this: const { a, b, c } = require('.… Read more Destructuring With Nested Objects And Default Values