--- id: 5d7925381e8565a5c50ba7f1 title: Part 99 challengeType: 0 dashedName: part-99 --- # --description-- In functional programming, we strive to use a type of function called "pure functions" as much as possible. The first property of pure functions is that they always return the same value for the same arguments. You can check if this is the case by comparing a call to a function with another call (with the same arguments): ```js console.log(f(2) === f(2)); // always true for pure functions ``` Use this technique to check if the `random` function in `spreadsheetFunctions` is pure by passing in the following array: `[1, 1000]`. # --hints-- See description above for instructions. ```js assert( /(spreadsheetFunctions\[["']random["']\]\(1,1000\))===\1/.test( code.replace(/\s/g, '') ) ); ``` # --seed-- ## --before-user-code-- ```html Spreadsheet
``` ## --after-user-code-- ```html ``` ## --seed-contents-- ```html ``` # --solutions-- ```html ```