--- id: 5a24c314108439a4d403614c title: Get State from the Redux Store challengeType: 6 isRequired: false videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(store.getState()===5, "The redux store should have a value of 5 for the initial state.");' - text: '' testString: 'getUserInput => assert(currentState === 5 && getUserInput("index").includes("store.getState()"), "A variable currentState should exist and should be assigned the current state of the Redux store.");' ```
## Challenge Seed
```jsx const store = Redux.createStore( (state = 5) => state ); // change code below this line ```
## Solution
```js // solution required ```