Add line break (#23064)
Added a line break between the last section's title and its content.
This commit is contained in:
committed by
Manish Giri
parent
969065887a
commit
9b51c70d45
@ -64,6 +64,7 @@ const {first: firstName, last: lastName} = fullName;
|
|||||||
console.log(firstName, lastName); // John Smith
|
console.log(firstName, lastName); // John Smith
|
||||||
```
|
```
|
||||||
**Array Destructuring with rest**
|
**Array Destructuring with rest**
|
||||||
|
|
||||||
When destructuring an array, you can unpack and assign the remaining part of it to a variable using the rest pattern:
|
When destructuring an array, you can unpack and assign the remaining part of it to a variable using the rest pattern:
|
||||||
```js
|
```js
|
||||||
const [a, ...b] = [1, 2, 3];
|
const [a, ...b] = [1, 2, 3];
|
||||||
|
Reference in New Issue
Block a user