Skip to content

Commit 7f1bdd9

Browse files
authored
Update functions-concepts.md
1 parent 6b72fea commit 7f1bdd9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

challenges/functions-concepts.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@ function multipleValueReturnFunc(){
354354
}
355355

356356
// driver code
357-
const {x, y} = multipleValueReturnFunc();
357+
const { a: x, b: y } = multipleValueReturnFunc(); // x will have 'Java' and y will have 'Script'
358+
const { a, b } = multipleValueReturnFunc(); // a and b will have respective values
358359
```
359360

360361
```js

0 commit comments

Comments
 (0)