--- id: 5d79253760fca25ccbbd8990 title: Part 97 challengeType: 0 isHidden: true --- ## Description
The array destructuring syntax can be used to extract values from arrays: ```js const [x, y] = [1, 2]; // in variables const fn = ([x, y]) => x + y // in functions ``` Use this syntax to define a function `random` in `spreadsheetFunctions` which takes the array `[x, y]` and returns `x`.
## Instructions
## Tests
```yml tests: - text: See description above for instructions. testString: assert(/["']?random["']?:\(\[x,y\]\)=>x/.test(code.replace(/\s/g, "")) && spreadsheetFunctions["random"]([1, 2]) === 1); ```
## Challenge Seed
```html ```
### Before Test
```html Spreadsheet
```
### After Test
```html ```
## Solution
```html ```