--- id: 5d792538e2a8d20cc580d481 title: Step 115 challengeType: 0 dashedName: step-115 --- # --description-- The `slice` method can also work on arrays. Add a method `firsttwo` to `spreadsheetFunctions` which takes `arr` as argument and uses `slice` to return the first two elements of `arr`. # --hints-- See description above for instructions. ```js assert( JSON.stringify(spreadsheetFunctions.firsttwo([2, 6, 1, 4, 3])) === '[2,6]' ); ``` # --seed-- ## --before-user-code-- ```html Spreadsheet
``` ## --after-user-code-- ```html ``` ## --seed-contents-- ```html ``` # --solutions-- ```html ```