--- id: 5d79253ad297a31cbe073718 title: Part 140 challengeType: 0 isBeta: true --- ## Description
The function in the `map` method can actually take a second argument: the index of the element. This is why you need an arrow function in `charRange` - if you don't use one, then the index will be passed to `String.fromCharCode` as the second argument, leading to unexpected results. However, it is safe for functions like `parseFloat` which take only one argument (but not for `parseInt`). Chain `.map((x, i) => x + i)` to `.fill(start)` to add its index to every element in the array in `range`.
## Instructions
## Tests
```yml tests: - text: See description above for instructions. testString: assert(code.replace(/\s/g, "").includes("constrange=(start,end)=>Array(end-start+1).fill(start).map((x,i)=>x+i)")); ```
## Challenge Seed
```html ```
### Before Test
```html Spreadsheet
```
### After Test
```html ```
## Solution
```html ```