---
id: 5d792538f5004390d6678554
title: Part 116
challengeType: 0
isBeta: true
---
## Description
You can also pass in a negative argument to `slice` to specify that index from the end:
```js
[2, 4, 6, 8, 10].slice(-3); // [6, 8, 10]
```
Use a negative index to add a function `lasttwo` which returns the last two elements of an array.
## Instructions
## Tests
```yml
tests:
- text: See description above for instructions.
testString: assert(JSON.stringify(spreadsheetFunctions.lasttwo([2, 6, 1, 4, 3])) === "[4,3]");
```
## Challenge Seed
```html
```
### Before Test
### After Test
```html
```
## Solution